skills-catalog/ln-110-project-docs-coordinator/SKILL.md
Coordinates project documentation creation with single context gathering and project type detection. Use when generating project docs subset.
npx skillsauth add levnikolaevich/claude-code-skills ln-110-project-docs-coordinatorInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Paths: File paths (
shared/,references/,../ln-*) are relative to skills repo root. If not found at CWD, locate this SKILL.md directory and go up one level for repo root. Ifshared/is missing, fetch files via WebFetch fromhttps://raw.githubusercontent.com/levnikolaevich/claude-code-skills/master/skills/{path}.
Type: L2 Coordinator Category: 1XX Documentation Pipeline
Runtime-backed docs coordinator. The runtime owns context assembly checkpoints, conditional worker fan-out, and docs-generation summary aggregation.
ln-100 docs-quality repair loopMANDATORY READ: Load shared/references/coordinator_runtime_contract.md, shared/references/docs_runtime_contract.md, shared/references/docs_generation_summary_contract.md
Runtime family: docs-runtime
Identifier:
project-docsPhases:
PHASE_0_CONFIGPHASE_1_CONTEXT_ASSEMBLYPHASE_2_DETECTIONPHASE_3_DELEGATEPHASE_4_AGGREGATEPHASE_5_SELF_CHECKWorker summary contract:
ln-111..115 may receive summaryArtifactPathdocs-generation summary envelopeFrom ln-100 (optional source cleanup phase):
{
"SOURCE_DOC_NOTES": {
"architecture_notes": { "sections": [...], "diagrams": [...] },
"requirements_notes": { "functional": [...] },
"principles_notes": { "principles": [...], "anti_patterns": [...] },
"tech_stack_notes": { "frontend": "...", "backend": "...", "versions": {} },
"api_notes": { "endpoints": [...], "authentication": "..." },
"database_notes": { "tables": [...], "relationships": [...] },
"runbook_notes": { "prerequisites": [...], "install_steps": [...], "env_vars": [...] },
"infrastructure_notes": { "servers": [...], "domains": [...], "ports": {} }
}
}
SOURCE_DOC_NOTES enriches the standard context store before worker dispatch. Workers consume normalized context fields only; there is no legacy-specific override branch.
MANDATORY READ: Load shared/references/docs_quality_contract.md.
ln-110-project-docs-coordinator (this skill)
├── Phase 1: Context Gathering (ONE TIME)
├── Phase 2: Delegate to Workers
│ ├── ln-111-root-docs-creator → 4 root docs (ALWAYS)
│ ├── ln-112-project-core-creator → 3 core docs (ALWAYS)
│ ├── ln-113-backend-docs-creator → 2 docs (if hasBackend/hasDatabase)
│ ├── ln-114-frontend-docs-creator → 1 doc (if hasFrontend)
│ └── ln-115-devops-docs-creator → 2 docs (1 always + 1 if hasDocker)
└── Phase 3: Aggregate Results
1.1 Auto-Discovery (scan project files):
| Source | Data Extracted | Context Store Keys | |--------|----------------|-------------------| | package.json | name, description, dependencies, scripts, engines, author, contributors | PROJECT_NAME, PROJECT_DESCRIPTION, DEPENDENCIES, DEV_COMMANDS, DEVOPS_CONTACTS | | docker-compose.yml | services, ports, deploy.replicas, runtime:nvidia | DOCKER_SERVICES, DEPLOYMENT_SCALE, HAS_GPU | | Dockerfile | runtime version | RUNTIME_VERSION | | src/ structure | folders, patterns | SRC_STRUCTURE, ARCHITECTURE_PATTERN | | migrations/ | table definitions | SCHEMA_OVERVIEW | | .env.example | environment variables | ENV_VARIABLES | | tsconfig.json, .eslintrc | conventions | CODE_CONVENTIONS | | README.md | project description, scaling mentions | PROJECT_DESCRIPTION (fallback), DEPLOYMENT_SCALE (fallback) | | CODEOWNERS | maintainers | DEVOPS_CONTACTS | | git log | frequent committers | DEVOPS_CONTACTS (fallback) | | ~/.ssh/config, deploy targets | SSH aliases, hostnames, IPs | SERVER_INVENTORY | | docker-compose VIRTUAL_HOST vars | domain routing | DOMAIN_DNS | | .env.example registry URLs, .npmrc | artifact repos | ARTIFACT_REPOSITORY | | docker-compose deploy.resources | resource limits | HOST_REQUIREMENTS |
1.2 Detect Project Type:
| Flag | Detection Rule | |------|----------------| | hasBackend | express/fastify/nestjs/fastapi/django in dependencies | | hasDatabase | pg/mongoose/prisma/sequelize in dependencies OR postgres/mongo in docker-compose | | hasFrontend | react/vue/angular/svelte in dependencies | | hasDocker | Dockerfile exists OR docker-compose.yml exists |
1.3 User Materials Request:
1.4 MCP Research (for detected technologies):
1.5 Build Context Store:
{
"PROJECT_NAME": "my-project",
"PROJECT_DESCRIPTION": "...",
"TECH_STACK": { "frontend": "React 18", "backend": "Express 4.18", "database": "PostgreSQL 15" },
"DEPENDENCIES": [...],
"SRC_STRUCTURE": { "controllers": [...], "services": [...] },
"ENV_VARIABLES": ["DATABASE_URL", "JWT_SECRET"],
"DEV_COMMANDS": { "dev": "npm run dev", "test": "npm test" },
"DOCKER_SERVICES": ["app", "db"],
"DEPLOYMENT_SCALE": "single",
"DEVOPS_CONTACTS": [],
"HAS_GPU": false,
"SERVER_INVENTORY": [],
"DOMAIN_DNS": [],
"ARTIFACT_REPOSITORY": {},
"HOST_REQUIREMENTS": {},
"flags": { "hasBackend": true, "hasDatabase": true, "hasFrontend": true, "hasDocker": true }
}
DEPLOYMENT_SCALE detection rules:
"single" (default): No deploy.replicas, no scaling keywords in README"multi": deploy.replicas > 1 OR load balancer mentioned"auto-scaling": auto-scaling keywords in README/docker-compose"gpu-based": runtime: nvidia in docker-composeDEVOPS_CONTACTS fallback chain:
[TBD: Provide DevOps team contacts]1.6 Merge Normalized Source Notes (if provided by ln-100):
SOURCE_DOC_NOTES was passed from ln-100 cleanup phasecontextStore.SOURCE_DOC_NOTES = input.SOURCE_DOC_NOTES
SOURCE_DOC_NOTES are present: rely on direct auto-discovery + current canonical docsMANDATORY: All applicable workers MUST be invoked. Workers run in parallel via Agent tool for context isolation.
2.1 Always invoke (parallel):
ln-111-root-docs-creator with Context Storeln-112-project-core-creator with full Context Storeln-115-devops-docs-creator with Context Store (infrastructure.md always; runbook.md internally conditional on hasDocker)2.2 Conditionally invoke:
ln-113-backend-docs-creator if hasBackend OR hasDatabaseln-114-frontend-docs-creator if hasFrontendInvocation (parallel via Agent tool):
Agent(description: "{doc_type} docs via {worker}",
prompt: "Invoke Skill(skill: \"{worker}\") with context below.\n\nCONTEXT: {contextStore}",
subagent_type: "general-purpose")
Delegation Rules:
created_files, skipped_files, quality_inputs, validation_status)quality_inputs.owners from all workers into one repair-routing tableOutput:
{
"workers_invoked": 5,
"total_created": 11,
"total_skipped": 0,
"validation_status": "passed",
"created_files": [
"AGENTS.md",
"CLAUDE.md",
"docs/README.md",
"docs/documentation_standards.md",
"docs/principles.md",
"docs/project/requirements.md",
"docs/project/architecture.md",
"docs/project/tech_stack.md",
"docs/project/api_spec.md",
"docs/project/database_schema.md",
"docs/project/design_guidelines.md",
"docs/project/infrastructure.md",
"docs/project/runbook.md"
],
"quality_inputs": {
"doc_paths": ["AGENTS.md", "CLAUDE.md", "docs/README.md", "docs/project/architecture.md"],
"owners": {
"AGENTS.md": "ln-111-root-docs-creator",
"CLAUDE.md": "ln-111-root-docs-creator",
"docs/project/architecture.md": "ln-112-project-core-creator"
}
},
"context_store": {
"PROJECT_NAME": "...",
"TECH_STACK": { "frontend": "React 18", "backend": "Express 4.18", "database": "PostgreSQL 15" },
"DEPENDENCIES": [...],
"flags": { "hasBackend": true, "hasDatabase": true, "hasFrontend": true, "hasDocker": true }
}
}
| Phase | Worker | Context | Condition | |-------|--------|--------|-----------| | 2 | ln-111-root-docs-creator | Agent (parallel) — root docs | ALWAYS | | 2 | ln-112-project-core-creator | Agent (parallel) — core project docs | ALWAYS | | 2 | ln-115-devops-docs-creator | Agent (parallel) — infrastructure + runbook | ALWAYS | | 2 | ln-113-backend-docs-creator | Agent (parallel) — API spec + DB schema | hasBackend OR hasDatabase | | 2 | ln-114-frontend-docs-creator | Agent (parallel) — design guidelines | hasFrontend |
All workers: Invoke via Agent tool with Skill — workers get Context Store.
- Build Context Store (pending)
- Invoke ln-111-root-docs-creator (pending)
- Invoke ln-112-project-core-creator (pending)
- Invoke ln-115-devops-docs-creator (pending)
- Invoke ln-113-backend-docs-creator [conditional] (pending)
- Invoke ln-114-frontend-docs-creator [conditional] (pending)
- Aggregate results (pending)
Anti-Patterns:
MANDATORY READ: Load shared/references/meta_analysis_protocol.md
Skill type: planning-coordinator. Run after all phases complete. Output to chat using the planning-coordinator format.
references/guides/automatic_analysis_guide.md, critical_questions.md, troubleshooting.mdVersion: 2.1.0 Last Updated: 2025-01-12
testing
Checks runtime lifecycle and config validation: bootstrap, shutdown, probes, cleanup, env sync, and fail-fast startup. Use for runtime readiness.
testing
Checks races, deadlocks, async hazards, TOCTOU, blocking I/O, and shared resource contention. Use when auditing concurrency correctness.
testing
Checks diagnosability through structured logs, metrics, traces, correlation IDs, and useful log levels. Use when auditing incident visibility.
development
Finds code that can be safely deleted: unreachable, unused, obsolete compatibility, and commented-out code. Use when pruning dead code.