一键导入
index-standards
Rebuild and maintain the agent-os/standards/index.yml file so /inject-standards can suggest relevant standards without reading all files.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Rebuild and maintain the agent-os/standards/index.yml file so /inject-standards can suggest relevant standards without reading all files.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use this skill when the user wants to save, update, or reference visual design assets for the project. Triggers on "save design", "update designs", "sync designs", "add visual", "design assets", "claude design export", "design folder", "/design". Also fires proactively when the agent is about to write UI code (React components, CSS, Tailwind classes, layout) — in that case, read the active design first so code matches the visual spec. The design folder is always at `.pi/design/` and the agent should always check it before writing any UI-facing code.
Pointer to the jsdoc-conventions standards file. Read this before writing or editing any JSDoc in a project.
Pointer to the spec-structure standards file. Read this before writing or editing any implementation spec.
Port new paradigms from the global base harness (~/.pi/agent/) into the current project's .pi/ harness, adapting them to match the project's stack, workflow tier, and conventions. Run in any project to pull in improvements made to another project's harness.
Break down a spec.md or requirements.md into an actionable tasks.md with strategic grouping and ordering. Used after spec creation and before implementation.
Detect the project type from code signals and reorganize standards folders to match — web app, backend API, CLI, library, dotfiles, mobile, or monorepo.
| name | index-standards |
| description | Rebuild and maintain the agent-os/standards/index.yml file so /inject-standards can suggest relevant standards without reading all files. |
Rebuild and maintain the standards index file (index.yml).
The index enables /inject-standards to suggest relevant standards without reading all files. It maps each standard to a brief description for quick matching.
.md files in agent-os/standards/ and its subfoldersroot/coding-style.md # Files in standards/ root use "root" as the folder name
root/naming.md
api/response-format.md
api/error-handling.md
database/migrations.md
Note: root is a reserved keyword — it refers to .md files directly in agent-os/standards/ (not in a subfolder). Do not create an actual folder named "root".
Read agent-os/standards/index.yml if it exists. Note which entries already have descriptions.
Compare the file scan with the existing index:
For each new standard file that needs an index entry:
New standard needs indexing:
File: api/response-format.md
Suggested description: "API response envelope structure and error format"
Accept? (yes / or type a better description)
Keep descriptions to one short sentence — they're for matching, not documentation.
If there are index entries for files that no longer exist:
Report: "Removed 2 stale index entries: api/old-pattern.md, testing/deprecated.md"
Generate agent-os/standards/index.yml with this structure:
folder-name:
file-name:
description: Brief description here
Rules:
.md extensionExample:
root:
coding-style:
description: General coding style, formatting, linting rules
naming:
description: File naming, variable naming, class naming conventions
api:
error-handling:
description: Error codes, exception handling, error response format
response-format:
description: API response envelope structure, status codes, pagination
database:
migrations:
description: Migration file structure, naming conventions, rollback patterns
Note: root appears first and contains standards files that live directly in agent-os/standards/ (not in subfolders).
Index updated:
✓ 2 new entries added
✓ 1 stale entry removed
✓ 8 entries unchanged
Total: 9 standards indexed
/inject-standards suggestions seem out of syncNote: /discover-standards runs this automatically as its final step, so you usually don't need to call it separately after discovering standards.
Updates agent-os/standards/index.yml