Token导航 LogoToken导航TokenDH.com
开发敏感数据github未标认证来源可访问许可证需确认审计提醒

projectsprojects 搜索

Agent Skill

projects 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

461

周安装

19

GitHub Stars

3

下载量

150
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:projects(projects 搜索)
来源仓库:https://github.com/compilet-dev/agent-skill-layerproof
仓库路径:skills/projects
安装命令:
npx skills add https://github.com/compilet-dev/agent-skill-layerproof --skill projects
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/compilet-dev/agent-skill-layerproof --skill projects

简介

projects 管理 Layerproof 平台的公开 API 项目操作接口。

  • 支持创建、查询、更新、删除及克隆项目,含投票和可见性控制。
  • 需设置 LAYERPROOF_BASE_URL 和 API KEY 环境变量进行认证。
  • 所有请求必须携带 X-API-KEY 头部,注意分页参数格式差异。
  • projects 属于开发类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Skill: Projects Management

Description

Manage Layerproof projects (create, list, get, update, delete, clone, vote, public list, visibility, recent, soft-delete restore). This skill documents the public API at /api/v2/projects (PublicApiProjectController). Authenticate with X-API-KEY header. List uses cursor pagination (limit, cursor). List deleted uses offset pagination (page, page_size).


Requirements

Environment variables:

  • LAYERPROOF_BASE_URL
  • LAYERPROOF_API_KEY

All requests must include:

  • X-API-KEY: $LAYERPROOF_API_KEY

TypeScript types (request / response)

Mirrors PublicApiProjectController data classes.

// --- Create (POST) — 201 ---
type PublicApiCreateProjectRequest = {
  name: string;                   // required, 1–255 chars
  description?: string | null;    // max 10000 chars
  status?: string | null;         // e.g. "DRAFT"; defaults to DRAFT if omitted
  tags?: string[] | null;
  metadata?: Record<string, any> | null;
  project_kind?: "SLIDE_DECK" | "GENERIC" | "MINDMAP" | "THEME" | "BLOG_POST" | "SOCIAL_CAMPAIGN";  // default: SLIDE_DECK
  workspace_id?: string | null;   // UUID
  theme_id?: string | null;       // UUID; optional theme for slide deck
  aspect_ratio?: string | null;   // e.g. "16:9"
};

// --- Update (PUT) ---
type PublicApiUpdateProjectRequest = {
  name?: string | null;           // 1–255 chars
  description?: string | null;    // max 10000 chars
  status?: string | null;
  tags?: string[] | null;
  metadata?: Record<string, any> | null;
  workspace_id?: string | null;   // UUID
  is_public?: boolean | null;
};

// --- Clone (POST /{projectId}/clone) — 201 ---
type CloneProjectRequest = {
  name?: string | null;           // defaults to "Copy of <source name>"
  workspace_id?: string | null;   // UUID; if null, auto-creates hidden workspace
};

// --- Project response ---
type PublicApiProjectResponse = {
  id: string;
  name: string;
  description: string | null;
  status: string;                 // e.g. "ACTIVE", "DRAFT"
  project_kind: string;           // e.g. "SLIDE_DECK"
  metadata: Record<string, any>;
  slide_deck_id: string | null;
  workspace_id?: string | null;   // UUID
  thumbnail_url?: string | null;  // optional preview image URL
  slide_deck_type?: string | null;  // e.g. "PRESENTATION", "SOCIAL_POST", "WEBPAGE", "VIDEO"
  tags: string[];
  created_at: string;             // ISO 8601
  updated_at: string;             // ISO 8601
  is_public: boolean;
  vote_count: number;
  has_voted?: boolean | null;
};

// --- List response (cursor-paginated) ---
type PublicApiProjectListResponse = {
  data: PublicApiProjectResponse[];
  next_cursor?: string | null;     // pass as `cursor` param for next page
  has_more?: boolean;
};

// --- Recent projects (GET /list/recent) ---
type PublicApiRecentProjectsResponse = {
  data: PublicApiProjectResponse[];
};

// --- Update visibility only (PUT /{project_id}/visibility) ---
type PublicApiUpdateProjectVisibilityRequest = {
  is_public: boolean;  // required
};

List Projects

Query params: limit (default 20, max 100), cursor (from previous next_cursor).

curl "$LAYERPROOF_BASE_URL/api/v2/projects?limit=20" \
  -H "X-API-KEY: $LAYERPROOF_API_KEY"

Example JSON response:

{"data":[{"id":"2b12d232-eca6-4161-96df-9f954fbbb36f","name":"Exit Strategy Overview","description":"...","status":"ACTIVE","project_kind":"SLIDE_DECK","metadata":{},"slide_deck_id":"ab2c64a5-0b59-45ec-baef-1d5b68dbf5fe","created_at":"2026-03-09T03:15:51.548959Z","updated_at":"2026-03-09T03:16:17.069810Z","is_public":false,"vote_count":0,"has_voted":null}],"next_cursor":null,"has_more":false}

Get Project

curl "$LAYERPROOF_BASE_URL/api/v2/projects/<project_id>" \
  -H "X-API-KEY: $LAYERPROOF_API_KEY"

Example JSON response:

{"id":"2b12d232-eca6-4161-96df-9f954fbbb36f","name":"Exit Strategy Overview","description":"...","status":"ACTIVE","project_kind":"SLIDE_DECK","metadata":{"original_prompt":"Create an exit strategy overview"},"slide_deck_id":"ab2c64a5-0b59-45ec-baef-1d5b68dbf5fe","created_at":"2026-03-09T03:15:51.548959Z","updated_at":"2026-03-09T03:16:17.069810Z","is_public":false,"vote_count":0,"has_voted":false}

Create Project

Request body: PublicApiCreateProjectRequest. Response (201): PublicApiProjectResponse.

curl -X POST "$LAYERPROOF_BASE_URL/api/v2/projects" \
  -H "Content-Type: application/json" \
  -H "X-API-KEY: $LAYERPROOF_API_KEY" \
  -d '{
    "name": "<project_name>",
    "description": "<description>",
    "project_kind": "SLIDE_DECK"
  }'

Example JSON response:

{"id":"68f8270f-f36a-4817-8d0b-2c05efcd1c9a","name":"tmp-skill-project","description":"tmp","status":"DRAFT","project_kind":"SLIDE_DECK","metadata":{},"slide_deck_id":"a877d0c0-9514-40cc-8d27-cee3a1e73934","created_at":"2026-03-10T07:07:46.211172Z","updated_at":"2026-03-10T07:07:46.211176Z","is_public":false,"vote_count":0,"has_voted":null}

Update Project

Request body: PublicApiUpdateProjectRequest. Only provided fields are updated. Response: PublicApiProjectResponse.

curl -X PUT "$LAYERPROOF_BASE_URL/api/v2/projects/<project_id>" \
  -H "Content-Type: application/json" \
  -H "X-API-KEY: $LAYERPROOF_API_KEY" \
  -d '{"name":"<new_name>","description":"<new_description>","is_public":true}'

Delete Project

Soft-deletes the project and all associated resources. Response: 204 No Content.

curl -X DELETE "$LAYERPROOF_BASE_URL/api/v2/projects/<project_id>" \
  -H "X-API-KEY: $LAYERPROOF_API_KEY"

List Public Projects

Query params: limit (default 20, max 100), cursor, slide_deck_type (one of PRESENTATION, SOCIAL_POST, WEBPAGE, VIDEO; optional).

curl "$LAYERPROOF_BASE_URL/api/v2/projects/public?limit=20" \
  -H "X-API-KEY: $LAYERPROOF_API_KEY"

Vote for a Project

Records a vote on a public project. Response: 204 No Content.

curl -X POST "$LAYERPROOF_BASE_URL/api/v2/projects/<project_id>/vote" \
  -H "X-API-KEY: $LAYERPROOF_API_KEY"

Remove Vote from a Project

Removes a vote from a public project. Response: 204 No Content.

curl -X DELETE "$LAYERPROOF_BASE_URL/api/v2/projects/<project_id>/vote" \
  -H "X-API-KEY: $LAYERPROOF_API_KEY"

Clone Project

Clones an owned or public project into a new private project. Request body: CloneProjectRequest. Response (201): PublicApiProjectResponse.

curl -X POST "$LAYERPROOF_BASE_URL/api/v2/projects/<project_id>/clone" \
  -H "Content-Type: application/json" \
  -H "X-API-KEY: $LAYERPROOF_API_KEY" \
  -d '{"name":"<cloned_project_name>","workspace_id":"<workspace_id>"}'

Update Project Visibility

Sets public or private without sending a full project update. Request body: PublicApiUpdateProjectVisibilityRequest. Response: PublicApiProjectResponse.

curl -X PUT "$LAYERPROOF_BASE_URL/api/v2/projects/<project_id>/visibility" \
  -H "Content-Type: application/json" \
  -H "X-API-KEY: $LAYERPROOF_API_KEY" \
  -d '{"is_public":true}'

List Recent Projects

Query: limit (default 4, max 100). Response: PublicApiRecentProjectsResponse.

curl "$LAYERPROOF_BASE_URL/api/v2/projects/list/recent?limit=8" \
  -H "X-API-KEY: $LAYERPROOF_API_KEY"

List Deleted Projects

Soft-deleted projects for the current user. Query: page (default 0), page_size (default 20). Response: PublicApiProjectListResponse (cursor fields may be absent; use has_more).

curl "$LAYERPROOF_BASE_URL/api/v2/projects/deleted?page=0&page_size=20" \
  -H "X-API-KEY: $LAYERPROOF_API_KEY"

Restore Deleted Project

Restores a soft-deleted project. Response (200): {"restored": true}.

curl -X POST "$LAYERPROOF_BASE_URL/api/v2/projects/<project_id>/restore" \
  -H "X-API-KEY: $LAYERPROOF_API_KEY"

Permanently Delete Project

Hard-deletes a project that is already soft-deleted. Response: 204 No Content.

curl -X DELETE "$LAYERPROOF_BASE_URL/api/v2/projects/<project_id>/permanently" \
  -H "X-API-KEY: $LAYERPROOF_API_KEY"

Agent behavior

When the user asks to manage projects, do the following.

1. Choose the right endpoint

User intentEndpointMethod
List own projects/api/v2/projects?limit=20GET
Get project by ID/api/v2/projects/{projectId}GET
Create project/api/v2/projectsPOST
Update project/api/v2/projects/{projectId}PUT
Delete project/api/v2/projects/{projectId}DELETE
List public projects/api/v2/projects/public?limit=20GET
Vote for a project/api/v2/projects/{projectId}/votePOST
Remove vote/api/v2/projects/{projectId}/voteDELETE
Clone a project/api/v2/projects/{projectId}/clonePOST
Set visibility only/api/v2/projects/{projectId}/visibilityPUT
Recent projects/api/v2/projects/list/recent?limit=8GET
List deleted projects/api/v2/projects/deleted?page=0&page_size=20GET
Restore deleted project/api/v2/projects/{projectId}/restorePOST
Permanently delete (after soft delete)/api/v2/projects/{projectId}/permanentlyDELETE

2. Build and run the request

Step 1 — Check environment variables first. Before running any curl command, verify both LAYERPROOF_BASE_URL and LAYERPROOF_API_KEY are set on the user's machine:

if [[ -z "${LAYERPROOF_BASE_URL}" ]]; then
  echo "ERROR: LAYERPROOF_BASE_URL is not set."
  return 1
fi
if [[ -z "${LAYERPROOF_API_KEY}" ]]; then
  echo "ERROR: LAYERPROOF_API_KEY is not set."
  return 1
fi

If running from a project directory with a .env.local file, load it first:

if [[ -f .env.local ]]; then
  set -a
  source .env.local
  set +a
fi

Step 2 — Auth: Include X-API-KEY: $LAYERPROOF_API_KEY. Read env vars; if missing, tell the user. Step 3 — GET list: Use limit (default 20, max 100) and cursor for pagination. Pass next_cursor from a previous response as cursor to fetch the next page. Step 4 — POST/PUT: Build JSON body from the appropriate request type. Run curl and show result. Step 5 — DELETE project / vote: Build path; run curl. Response is 204 with no body.

3. Response handling

  • Always show the raw JSON response in a JSON code block.
  • For 204 responses, indicate success and no body.
  • On error, show the response body and status code.

4. Example workflows

Workflow A — User: "Create a project called Q3 Roadmap."

  1. Choose POST /api/v2/projects.
  2. Body: {"name":"Q3 Roadmap","project_kind":"SLIDE_DECK"}.
  3. Run curl; show JSON. The returned id is the project ID; slide_deck_id is the associated slide deck.

Workflow B — User: "Create a slide deck project in workspace W, then generate an outline for it."

  1. Resolve workspace_id (e.g. from GET workspaces or user). POST /api/v2/projects with {"name":"...", "project_kind":"SLIDE_DECK", "workspace_id":"<workspace_id>"}; capture id and slide_deck_id.
  2. Hand off to slide-decks skill: use projectId = id and slideDeckId = slide_deck_id; POST .../projects/{projectId}/slide-deck/{slideDeckId}/outline/generate with prompt and slide_count; poll jobs; get deck or update outline as needed.

Workflow C — User: "List my projects, find the one named 'Launch Deck', export it as PPTX, and if there’s a clone or vote option show me how."

  1. GET /api/v2/projects with limit and optional cursor; paginate if needed. Locate project where name matches "Launch Deck"; capture id.
  2. Hand off to exports skill: POST .../projects/{id}/exports/pptx; poll GET .../exports/{exportId} until COMPLETED; show downloadUrl.
  3. Optionally: POST .../projects/{id}/clone to clone, or POST/DELETE .../projects/{id}/vote per API; show response and explain usage.

Response format (required)

  • (if response contains url to show image) please show image and show json response instead of table
  • Always show the raw JSON response (verbatim) in a JSON code block.
  • If the response contains a URL for an image, render/show the image and also show the JSON response (do not convert to a table).

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

35.84%
按下载量换算54

Claude

29.37%
按下载量换算44

Cursor

18.09%
按下载量换算27

Gemini CLI

9.27%
按下载量换算14

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills