Install
openclaw skills install @iliaal/compound-eng-md-docsManages project documentation: CLAUDE.md, AGENTS.md, README.md, CONTRIBUTING.md, DOCS.md. Use when asked to update, create, or init these context files. Not for general markdown editing.
openclaw skills install @iliaal/compound-eng-md-docsManage project documentation by verifying against actual codebase state -- analyze structure, files, and patterns before writing; never generate blind.
AGENTS.md is the universal context file (works with Claude Code, Codex, Kilocode). During Initialize Context or Update Context Files workflows only: if CLAUDE.md exists without AGENTS.md, confirm with the user first (Ask via AskUserQuestion (Claude Code; load with ToolSearch select:AskUserQuestion if not loaded) or request_user_input (Codex); fall back to numbered options in chat), then mv CLAUDE.md AGENTS.md && ln -sf AGENTS.md CLAUDE.md. Never migrate as a side effect of another task.
When this skill references "context files", it means AGENTS.md (and CLAUDE.md if present as symlink).
Verify and fix AGENTS.md against the actual codebase. See update-agents.md for the full verification workflow.
ls, cat package.json, cat pyproject.toml, etc.)Generate or refresh README.md from project metadata and structure. See update-readme.md for section templates and language-specific patterns.
--preserve: keep custom sections (About, Features), regenerate standard sections (Install, Usage)Update existing CONTRIBUTING.md only -- never auto-create. See update-contributing.md.
When updating, detect project conventions automatically:
Merge advisory. When CONTRIBUTING.md sits next to an AGENTS.md (repo root or any package root), surface a one-line recommendation: merge the contribution workflow section into the sibling AGENTS.md so the context file owns dev workflow, branch conventions, and review process as a single source of truth. Then suggest the user delete CONTRIBUTING.md after the merge. Never auto-merge and never auto-delete -- the user performs both. Continue the requested workflow regardless; the CONTRIBUTING file is advisory only.
If DOCS.md exists, treat it as API-level documentation (endpoints, function signatures, type definitions). Verify against actual code the same way as AGENTS.md. Never auto-create DOCS.md -- only update existing.
Create AGENTS.md from scratch for projects without documentation. See init-agents.md.
Keep AGENTS.md / CLAUDE.md to durable signal. Do NOT enumerate:
package.json engines, .nvmrc, pyproject.toml Python constraint, composer.json PHP version. List the source-of-truth file path; do not duplicate the version inline..eslintrc, ruff.toml, phpcs.xml already enforce it, the file is the spec. List the command to run; do not paraphrase rules.The test: if a fact will be wrong in two months without anyone touching this file, it does not belong here.
Structure CLAUDE.md (and AGENTS.md) content by priority so the most critical information loads first when context is compacted:
Rules that prevent mistakes outweigh background information.
Multi-package repo? Read monorepo.md before any update-*/init-* sweep (discovery commands, per-file scoping, context-loading rules). Enumerate targets; if the sweep would create or rewrite more than 3 files, stop: list planned targets and confirm before writing (same ask mechanism as in Portability above).
Treat these as user-request modifiers: apply when the request contains the flag or equivalent phrasing. All workflows support:
--dry-run: preview changes as a diff, write nothing--preserve: keep existing structure, fix inaccuracies only--minimal: quick pass, high-level structure only--thorough: deep analysis of all filesBefore overwriting: cp FILE FILE.backup; never auto-delete backups.
<details> blocks instead of deleting content (blank line required after <summary> for GitHub rendering).Flag during Update README workflows:
After every operation, display a summary:
[OK] Updated AGENTS.md
- Fixed build command
- Added new directory to structure
[OK] Updated README.md
- Added installation section
- Updated badges
[--] CONTRIBUTING.md not found (skipped)