Best for
- Navigating the documentation structure to find relevant information
- Creating or updating agent documentation after changes
- Setting up documentation for a new module or package
event4u-app/agent-config/src/skills/agent-docs-writing/SKILL.md
Use when reading, creating, or updating agent documentation, module docs, roadmaps, or AGENTS.md. Understands the full .augment/, agents/, and copilot-instructions structure.
Decision brief
md. Understands the full .
Compatibility matrix
| Platform | Status | Evidence | What to check |
|---|---|---|---|
| Codex | Not declared | No explicit evidence | Portability before use |
| Claude Code | Not declared | No explicit evidence | Portability before use |
| Cursor | Not declared | No explicit evidence | Portability before use |
| Gemini CLI | Not declared | No explicit evidence | Portability before use |
Installation
The source command is displayed only when detected. A safe inspection prompt is always available so your agent can explain every action before execution.
npx skills add https://github.com/event4u-app/agent-config --skill "src/skills/agent-docs-writing"Inspect the Agent Skill "agent-docs-writing" from https://github.com/event4u-app/agent-config/blob/a36d4658de87e81bda8299dc3a01b9b9ce583af5/src/skills/agent-docs-writing/SKILL.md at commit a36d4658de87e81bda8299dc3a01b9b9ce583af5. List every install step, command, network request, credential, file read/write, external action, and rollback step. Explain whether it fits my task. Do not install or execute anything until I approve.
Workflow
Located in .github/. Contains: - Architecture rules - PHP coding standards - Naming conventions - ORM & database rules (Laravel example: Eloquent) - API development rules
1. Identify trigger — What changed? (see table below) 2. Locate target — Find the correct file in the documentation hierarchy. 3. Update content — Edit or create the doc. English only in .md files. 4. Verify — Confirm the doc is consistent with surrounding files and cross-refere…
When a command or skill consumes a file from agents/tmp/ as its INPUT (roadmap created from it, note promoted to knowledge, etc.), move the source file to agents/tmp.old/ in the same reply as the output.
Use this skill when: - Navigating the documentation structure to find relevant information - Creating or updating agent documentation after changes - Setting up documentation for a new module or package - Understanding what documentation exists and where
The documentation is organized in layers, from cross-project to module-specific:
Permission review
No configured static risk pattern was detected
This is not proof of safety. Runtime behavior, indirect dependencies, and hidden external systems are outside the static scan.
Evidence record
| Signal | Value | Evidence type | Meaning |
|---|---|---|---|
| Quality score | 93/100 | Computed | Documentation, specificity, maintenance, and trust rules |
| Repository stars | 7 | Source | Repository attention, not individual Skill quality |
| Compatibility | 0 platforms | Source | Declared in the catalog source record |
| Usage guide | automated source guide | Editorial | Generated or reviewed according to the visible evidence level |
Pinned source
Use this skill when:
Do NOT use when:
guidelines skill)The documentation is organized in layers, from cross-project to module-specific:
.augment/ — Cross-project (identical in all repos).augment/
├── rules/ ← Always-active rules (coding, docker, scope, language, etc.)
├── commands/ ← Slash commands (fix-ci, create-pr, quality-fix, etc.)
├── skills/ ← Reusable skill definitions (coder, code-refactoring, etc.)
├── contexts/ ← Shared contexts about the agent system itself
├── templates/ ← Templates for features, roadmaps, contexts
└── guidelines/ ← Coding guidelines by language
└── php/ ← PHP guidelines (controllers, eloquent, patterns, etc.)
Purpose: Universal agent behavior that applies to ALL projects and packages.
Language: English.
Key rule: This directory is identical across repos. Never add project-specific content here.
Templates are the single source of truth for document structure — never store templates in agents/.
AGENTS.md — Project-level entry pointLocated in the project root. Contains:
./agents/ for detailed docsPurpose: First file an agent reads. Provides the full project context.
Not every project has this — packages may only have ./agents/.
.github/copilot-instructions.md — Coding standardsLocated in .github/. Contains:
Purpose: Coding standards shared with GitHub Copilot and other AI tools. Not every project has this — check if it exists before referencing it.
agents/overrides/ — Project-level overridesagents/overrides/
├── rules/ ← Override .augment/rules/*.md
├── skills/ ← Override .augment/skills/*/SKILL.md
├── commands/ ← Override .augment/commands/*.md
├── guidelines/ ← Override .augment/guidelines/**/*.md
└── templates/ ← Override .augment/templates/*.md
Purpose: Project-specific customizations of shared .augment/ resources (which are delivered as a package).
Mechanism: Each override file has a Mode header — extend (additive) or replace (full swap).
Key rule: Never modify .augment/ directly — always use overrides for project-specific needs.
See: .augment/contexts/override-system.md for naming conventions and format.
./agents/ — Project-specific documentationagents/
├── database-setup.md ← DB architecture, connections, tenancy
├── testing.md ← Test suites, conventions, seeders
├── dto.md ← DTO patterns and base classes
├── services-and-repos.md ← Service layer conventions
├── overrides/ ← Project-level overrides (see Layer 4)
├── features/ ← Feature plans (project-wide)
│ └── {feature-name}.md
├── roadmaps/ ← Multi-step change plans
│ └── {roadmap-name}.md
│ └── current.md
└── contexts/ ← Context documents (codebase area snapshots)
└── {context-name}.md
Purpose: Project-specific architecture, conventions, and domain knowledge.
Structure rule: Structural docs directly in agents/, features/roadmaps in subdirectories.
Templates live in .augment/templates/, NOT in agents/ subdirectories.
{module_root}/{Module}/{agent_folder}/ — Module-specific documentation{module_root} comes from modules.root_paths and {agent_folder} from
modules.agent_folder in .agent-project-settings.yml. Discover via
scripts/_lib/agent_settings.ts::enumerate_modules(). Common shapes:
Laravel app/Modules/{Module}/agents/, Symfony src/Bundle/{Bundle}/agents/,
monorepo packages/{Pkg}/agents/.
{module_root}/{Module}/ ← e.g. app/Modules/ClientSoftware/
├── {agent_folder}/ ← e.g. agents/
│ ├── module-description.md
│ ├── features/ ← Module-scoped feature plans
│ │ └── {feature-name}.md
│ ├── roadmaps/ ← Module-scoped roadmaps
│ │ └── {roadmap-name}.md
│ └── contexts/ ← Module-scoped context documents
│ └── {context-name}.md
└── Docs/
└── technical-docs.md
Purpose: Documentation scoped to a specific module. When to create: When a module has its own conventions, complex domain logic, or active roadmaps.
Docs/ — Technical documentationDocs/ ← Project-level technical docs
{module_root}/{Module}/Docs/ ← Module-level technical docs
Purpose: Technical documentation for humans (setup guides, architecture diagrams, API docs).
Difference from agents/: Docs/ is for human readers, agents/ is optimized for AI agents.
{package-root}/
├── agents/
│ ├── package-description.md
│ └── roadmaps/
└── AGENTS.md (optional)
Purpose: Same structure as projects, but for Composer packages.
When starting work, read documentation in this order:
AGENTS.md (if it exists) — project overview.github/copilot-instructions.md (if it exists) — coding standardsagents/overrides/ — check for project-level overrides of skills/rules/commands./agents/ — project-specific docs relevant to the task{module_root}/{Module}/{agent_folder}/ — if working on a module (resolved via modules.root_paths + modules.agent_folder; Laravel: app/Modules/{Module}/agents/, Symfony: src/Bundle/{Bundle}/agents/, monorepo: packages/{Pkg}/agents/)agents/features/ or module {agent_folder}/features/ — if related feature plan existsagents/roadmaps/ or module {agent_folder}/roadmaps/ — if continuing existing work.md files.| Trigger | Action |
|---|---|
| New module created | Create {module_root}/{Module}/{agent_folder}/ with module description (Laravel example: app/Modules/{Module}/agents/) |
| Significant multi-step change | Ask user about creating a roadmap in agents/roadmaps/ |
| New convention introduced | Update relevant doc in ./agents/ or .augment/guidelines/ |
| Database schema changed | Update agents/reference/docs/database-setup.md |
| Architectural decision made | Use the adr-create skill — writes a numbered ADR under docs/adr/ (or docs/decisions/) and regenerates the index |
After making changes, check if docs need updating:
[x] in the roadmap file./agents/This is the detection procedure the downstream-changes
§ Doc-Impact obligation points at. Run it after every code change — the
detection is non-optional; the human still confirms the actual edit.
Step 1 — did a public surface change? Framework-agnostic surface list:
| Public surface changed | Doc that describes it — update in the same change |
|---|---|
HTTP route / endpoint (Laravel routes/, Next.js app/api, FastAPI/Express handlers, Go mux) | OpenAPI / API reference, README usage, AGENTS.md API section |
| Exported function / class / method signature | The doc/example that calls it; agents/reference/docs/services-and-repos.md if referenced |
| CLI command or flag | README usage, AGENTS.md commands section, --help text |
| Config / settings key | Settings doc, README config section, schema/example file |
| Environment variable | .env.example, AGENTS.md environment section |
| DB schema / migration | agents/reference/docs/database-setup.md |
| Event payload / job constructor | The listener/consumer doc that documents the contract |
| New module | {module_root}/{Module}/{agent_folder}/ (resolve via modules.root_paths + modules.agent_folder) |
| New pattern / convention | Relevant guideline in .augment/guidelines/ |
| Architectural decision | adr-create — numbered ADR + index regen |
Step 2 — apply the fire/no-fire test. Drift is a falsifiable-claim contradiction, not incompleteness:
Step 3 — escape hatch. Refactor-only / no public-surface change → no doc obligation. Surface changed but genuinely needs no doc edit → state the one-line reason; never edit a doc just to satisfy the rule (false-positive fatigue is worse than a missed nit).
When a doc edit IS needed but you are unsure of the wording — flag it with numbered options; do NOT auto-rewrite prose without the user's knowledge:
> 1. Yes — update the docs
> 2. No — leave as-is (reason: …)
.md files must be in English.AGENTS.md or .github/copilot-instructions.md.description: carries a routing clause naming an overlapping sibling
(Animated → pixar-storyteller), editing it obliges re-reading every sibling
it names and every sibling that names it, so no user phrase ends up routed to
two skills and none ends up routed to neither. One-sided edits are how a
cluster's descriptions drift back into ambiguity between sweeps;
lint_skill_descriptions catches a missing clause, not an inconsistent
one.{module_root}/{Module}/{agent_folder}/ (per modules.root_paths), NOT in the central agents/ directory.Apply the Frugality Charter to every agent-doc update you author.
Examples in this artifact:
Pre-save self-check:
DE: / EN: anchor blocks?When a command or skill consumes a file from agents/tmp/ as its INPUT
(roadmap created from it, note promoted to knowledge, etc.), move the source
file to agents/tmp.old/<original-name> in the same reply as the output.
mv agents/tmp/<filename> agents/tmp.old/<filename>
agents/tmp/.tmp/ and tmp.old/ are gitignored, local-only.agents/tmp/ — use agents/runtime/tmp/.See docs/contracts/agents-layout.md § User Inbox Workflow.
no-roadmap-references rule)Body of no-roadmap-references
(per P4 of road-to-kernel-and-router.md). The Iron Law — never link a
specific agents/roadmaps/ or agents/runtime/council/ file from a stable
artifact — stays in the rule; the pattern catalog lives here.
These paths must not appear inside a stable artifact:
agents/roadmaps/<file>.md, agents/roadmaps/archive/<file>.md,
agents/roadmaps/skipped/<file>.mdagents/runtime/council/questions/<file>.md,
agents/runtime/council/responses/<file>.json,
agents/runtime/council/sessions/<file>.json or <timestamp>/...Stable artifact = any file under src/{rules,skills,domains}/,
src/agent-src/{contexts,templates,personas}/, agents/settings/contexts/,
docs/guidelines/, docs/contracts/, docs/architecture.md,
docs/customization.md, docs/getting-started.md, docs/catalog.md,
AGENTS.md, README.md, copilot-instructions.md.
CI enforcement: scripts/check_no_roadmap_refs.ts (roadmap layer)
and scripts/check_council_references.ts (council layer) — both
fail the build on any new violation.
agents/roadmaps/ and agents/runtime/council/ subdirs as directory
mentions (talking about the layer, not a specific file)ai-council skill and /council:* commands documenting the
output path schemaagents/runtime/.agent-chat-history, commit messages, PR
descriptions — transient by construction, not part of the package
surfaceTwo source/target shapes are exempt from the council-link ban
because the target is immutable input or decision provenance,
not transient drafting state. The linter implements these directly
(STRUCTURAL_CARVEOUTS in scripts/check_council_references.ts);
they do not need an inline <!-- council-ref-allowed: ... -->
pragma.
| Source | Target | Why |
|---|---|---|
agents/settings/contexts/evaluation-*.md | agents/runtime/council/questions/<question>.md | Question file is a frozen function-parameter / spend-gate input, not documentation. |
docs/contracts/*.md | agents/runtime/council/sessions/<ts>/synthesis.md | Synthesis is the audit-trail receipt; contract inlines the decision body itself. |
Driven by the 2026-05-14 P3.4 council round (claude-sonnet-4-5 + gpt-4o, converged on rule refactor over escape-hatch overuse). Any other source/target combination still needs an inline pragma or inline-summary rewrite.
When a stable artifact needs to cite a transient finding:
agents/settings/contexts/ (ADR,
mechanics doc, locked decision). The roadmap or council session
can then point at the context, not the other way around.ai-council § Output format) instead of
linking the session JSON.Failure modes:
agents/tmp/ — that is the user's inbox.agents/evidence/analysis/*, agents/reports/* generated by a script): commit only together with the work that consumed them. A session that regenerates as a side-effect discards with git checkout -- before ending. See docs/contracts/agents-layout.md § Session-leftover discipline.Frequently asked questions
md. Understands the full .
The source record exposes this install command: npx skills add https://github.com/event4u-app/agent-config --skill "src/skills/agent-docs-writing". Inspect the command and pinned source before running it.
Alternatives
oaustegard/claude-skills
Generate hierarchical _FEATURES.md files that describe what a codebase DOES from a user/consumer perspective, anchored to source symbols via tree-sitting. Supports large complex codebases through feature-driven decomposition into sub-feature files. Uses a multi-pass synthesis: orientation → detail → overview rewrite. Use when someone says "what does this do", "document features", "feature inventory", "_FEATURES.md", or needs to understand a codebase's purpose before modifying it. Complements tre
enuno/unifi-mcp-server
Specialized guide for adding new MCP tools to the UniFi MCP Server following project standards, UniFi API patterns, and test-driven development practices. Use when implementing new UniFi Network Controller features as MCP tools.
PaulRBerg/agent-skills
Create/scaffold/init a project-local agent skill under `.agents/skills` in an ordinary repository; defer to repository instructions that define a source catalog and lifecycle.
NintendaDev/unikit-ai
Generate and maintain the project's TECHNICAL documentation from its codebase — scans the project structure, tech stack, and module boundaries, then writes a lean README landing page plus detailed topic pages (architecture, modules, setup, build, APIs), only the docs that are relevant. Use whenever the user wants to create, update, or validate documentation of the CODE or the project itself, e.g. "generate documentation", "create docs", "write the README", "update the project docs", "document th