一键导入
doc-derivation
Derive comprehensive `/docs` from an existing codebase when docs are missing/stale. This is blocking work before new features.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Derive comprehensive `/docs` from an existing codebase when docs are missing/stale. This is blocking work before new features.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Add/extend Playwright E2E/integration specs for web use-case changes. Prefer existing repo naming conventions; include UC ID when introducing new use-case-specific specs.
Ensure GitHub Actions CI exists and is green. CI must run lint/format, build, and tests as applicable. Failing CI is blocking.
Add docker-compose for HTTP APIs (required before implementing/changing use cases). Provide .env.example + Make targets: up/down/test/lint/build.
End-to-end Gaia SDLC workflow (Repo Explorer → drift/CI fixes → task graph → gated delivery → QA veto → MCP proof). Use for any work in a repo.
Run curl-style integration checks against the docker-compose stack for HTTP APIs. Required for use-case changes.
Add or extend lint/format tooling and ensure it runs locally (Makefile) and in CI. Lint/build are always required in Gaia.
| name | doc-derivation |
| description | Derive comprehensive `/docs` from an existing codebase when docs are missing/stale. This is blocking work before new features. |
Use when:
/docs/ is missing or incomplete, ORThis work is blocking: do it before feature work.
A comprehensive /docs/ set that reflects the real system:
/docs/use-cases/ — one use case per file; use UC-000-template.md (naming: UC-NNN-short-title.md)/docs/architecture/ — system overview + key decisions; use ARCH-000-template.md (naming: ARCH-NNN-short-title.md)/docs/testing/ — how tests are structured + how to run; use TEST-000-template.md (naming: TEST-NNN-short-title.md)/docs/README.md — docs index + source-of-truth statementIdentify:
Capture notes as you go (do not commit notes; commit only final docs).
Create /docs/use-cases/ if missing.
For each real user-facing flow, create a file:
/docs/use-cases/UC-###-<kebab-title>.md
Each file MUST include these headers:
# UC-###: <Title>## Goal## Actors## Preconditions## Main Flow## Variants / Edge Cases## Acceptance Criteria## Notes (Optional)Rules:
Create /docs/architecture/ if missing.
Minimum set:
system-overview.md (components, responsibilities, boundaries)runtime-and-dependencies.md (services, data stores, external deps)api-surface.md (routes/commands summary, auth, error patterns)decisions.md (key decisions found; record as bullets, not essays)Keep it concise but complete enough that future work can be spec-driven.
Create /docs/testing/ if missing.
Include:
testing-strategy.md (what exists: unit/integration/e2e; what triggers what)how-to-run.md (canonical Make targets and what they do)ci-overview.md (what CI runs and where)Rule:
Cross-check that docs reflect:
.env.exampleIf any are missing in repo, create tasks to add them (blocking if needed per Gaia rules).
/docs/ exists and is structured/docs/use-cases/ exists and UC files have UC-### and required headersAGENTS.md (drift is blocking; case-by-case direction).github/copilot-instructions.md (repo invariants).github/skills/gaia-process/SKILL.md (workflow).github/skills/spec-consistency/SKILL.md (anti-drift checks)Makefile, .github/workflows/, docker-compose.yml, tests folders