← Back to Skills Marketplace
iliaal

ia-md-docs

by Ilia Alshanetsky · GitHub ↗ · v3.0.4 · MIT-0
cross-platform ✓ Security Clean
272
Downloads
0
Stars
0
Active Installs
11
Versions
Install in OpenClaw
/install compound-eng-md-docs
Description
Manages project documentation: CLAUDE.md, AGENTS.md, README.md, CONTRIBUTING.md. Use when asked to update, create, or init these context files. Not for gener...
README (SKILL.md)

Markdown Documentation

Manage project documentation by verifying against actual codebase state. Emphasize verification over blind generation -- analyze structure, files, and patterns before writing.

Portability

AGENTS.md is the universal context file (works with Claude Code, Codex, Kilocode). If the project uses CLAUDE.md, treat it as a symlink to AGENTS.md or migrate content into AGENTS.md and create the symlink:

# If CLAUDE.md exists and AGENTS.md doesn't
mv CLAUDE.md AGENTS.md && ln -sf AGENTS.md CLAUDE.md

When this skill references "context files", it means AGENTS.md (and CLAUDE.md if present as symlink).

Workflows

Update Context Files

Verify and fix AGENTS.md against the actual codebase. See update-agents.md for the full verification workflow.

  1. Read existing AGENTS.md, extract verifiable claims (paths, commands, structure, tooling)
  2. Verify each claim against codebase (ls, cat package.json, cat pyproject.toml, etc.)
  3. Fix discrepancies: outdated paths, wrong commands, missing sections, stale structure
  4. Discover undocumented patterns (scripts, build tools, test frameworks not yet documented)
  5. Report changes

Update README

Generate or refresh README.md from project metadata and structure. See update-readme.md for section templates and language-specific patterns.

  1. Detect language/stack from config files (package.json, pyproject.toml, composer.json)
  2. Extract metadata: name, version, description, license, scripts
  3. If README exists and --preserve: keep custom sections (About, Features), regenerate standard sections (Install, Usage)
  4. Generate sections appropriate to project type (library vs application)
  5. Report changes

Update CONTRIBUTING

Update existing CONTRIBUTING.md only -- never auto-create. See update-contributing.md.

When updating, detect project conventions automatically:

  • Package manager from lock files (package-lock.json → npm, yarn.lock → yarn, pnpm-lock.yaml → pnpm, bun.lockb → bun)
  • Branch conventions from git history (feature/, fix/, chore/ prefixes)
  • Test commands from package.json scripts or pyproject.toml

Update DOCS

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.

Initialize Context

Create AGENTS.md from scratch for projects without documentation. See init-agents.md.

  1. Analyze project: language, framework, structure, build/test tools
  2. Generate terse, expert-to-expert context sections
  3. Write AGENTS.md, create CLAUDE.md symlink

Context File Hierarchy

Structure CLAUDE.md (and AGENTS.md) content by priority so the most critical information loads first when context is compacted:

  1. Rules -- project constraints, forbidden patterns, required conventions. Override everything else.
  2. Tech stack -- languages, frameworks, versions, package managers.
  3. Commands -- how to build, test, lint, deploy. Exact commands, not descriptions.
  4. Conventions -- naming patterns, file organization, architectural decisions.
  5. Boundaries -- what's off-limits, what requires approval, scope constraints.

Rules that prevent mistakes outweigh background information. Place them at the top so they survive aggressive context compaction.

Monorepo Context Loading

Claude Code's context-file loading in monorepos follows three rules -- understanding them determines where content belongs:

  • Ancestors load immediately: walking UP from the current working directory, every AGENTS.md / CLAUDE.md encountered is loaded at startup. Put shared conventions at the repo root.
  • Descendants load lazily: an AGENTS.md deeper in the tree loads only when Claude reads or edits a file inside that subtree. Put package-specific conventions at each package's root (packages/api/AGENTS.md, apps/web/AGENTS.md).
  • Siblings never load: packages/a/AGENTS.md will NOT auto-load when working in packages/b/. Do not rely on sibling-package context leaking across.

Implication for monorepo layouts: duplicate any rule that must apply across sibling packages into each package's AGENTS.md (or hoist it to the repo root). The loader will not discover it laterally. Conversely, avoid putting package-specific rules at the root -- they'll load into every session regardless of relevance and burn context.

Arguments

All workflows support:

  • --dry-run: preview changes without writing
  • --preserve: keep existing structure, fix inaccuracies only
  • --minimal: quick pass, high-level structure only
  • --thorough: deep analysis of all files

Backup Handling

Before overwriting, back up existing files:

cp AGENTS.md AGENTS.md.backup
cp README.md README.md.backup

Never delete backups automatically.

Writing Style

  • Lead with the answer. First sentence of each section states the conclusion; reasoning follows. No "In this section, we'll..." preamble.
  • Imperative form for instructions: "Build the project" not "The project is built" — verify no passive voice in any directive sentence.
  • Expert-to-expert: cut explanations of concepts the target reader already knows. For CLAUDE.md/AGENTS.md, assume familiarity with git, package managers, test runners, and the project's main language.
  • Scannable: headings every ~20 lines, bullet lists for ≥3 parallel items, fenced code blocks for every command.
  • Verify every command and path against the codebase. Run each command before committing; grep for each referenced path. Stale paths and untested commands are the most common doc defect.
  • Sentence case headings, no emoji decoration (exception: changelog entries may use emoji per project convention).
  • Actionable headings: "Set SAML before adding users" — not "SAML configuration timing". Reader should know what to do from the heading alone.
  • Collapse depth with \x3Cdetails> blocks instead of deleting content (blank line required after \x3Csummary> for GitHub rendering).

README Anti-Patterns

Flag during Update README workflows:

  • Framework-first lead (explaining the tech stack before the problem it solves)
  • Jargon before definition (using project-specific terms without introduction)
  • Theory before try (architecture explanation before a working example)
  • Claims without evidence ("blazingly fast" with no benchmarks)

Report Format

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)

Verify

  • Every factual claim in updated docs verified against current codebase
  • No stale file paths or component names
  • Formatting renders correctly in markdown preview
Usage Guidance
This skill appears to do what it says: inspecting and updating project documentation files. Before installing or running it, be aware it may execute repository commands and will write/rename files (backups, mv, ln -s). To reduce risk: run the skill in `--dry-run` mode first, review any diffs before applying, avoid executing untrusted projects' install/test scripts, require explicit confirmation before writes or commits, and ensure no sensitive files or secrets are present in the repo. If you plan to allow autonomous invocation, enforce a policy that requires human approval for any non-dry-run change.
Capability Analysis
Type: OpenClaw Skill Name: compound-eng-md-docs Version: 3.0.4 The skill bundle is designed to automate the management and verification of project documentation files like README.md and AGENTS.md. It uses standard shell commands (ls, cat, cp, mv, ln) to inspect project structure and configuration files (package.json, pyproject.toml) to ensure documentation accuracy. No evidence of data exfiltration, malicious execution, or harmful prompt injection was found across SKILL.md or the reference files; all logic is strictly aligned with the stated purpose of documentation maintenance.
Capability Tags
cryptocan-make-purchases
Capability Assessment
Purpose & Capability
Name/description align with SKILL.md and the bundled reference workflows. All required actions (reading package manifests, listing directories, updating/creating AGENTS.md/CLAUDE.md/README.md/CONTRIBUTING.md) are coherent with the stated purpose; no unrelated credentials, binaries, or install steps are requested.
Instruction Scope
The runtime instructions explicitly tell the agent to verify claims by running commands (e.g., `ls`, `cat package.json`, grep, and to 'run each command before committing'). Executing repository scripts/commands can run arbitrary code in the project (install/build/test scripts), which is a safety risk even though it is related to verification. The skill does include safe practices (backups, --dry-run, and never auto-creating CONTRIBUTING.md), but users should treat automatic command execution as potentially dangerous and prefer dry-run/manual review.
Install Mechanism
Instruction-only skill with no install spec and no code files — lowest install risk. Nothing is downloaded or written outside the repository files the skill is meant to manage.
Credentials
No environment variables, credentials, or external config paths are requested. The skill reads project files (package.json, pyproject.toml, lockfiles) which is expected and proportional to its purpose.
Persistence & Privilege
always:false and no persistent installs. However, the skill's workflows perform writes to repository files (backups, renames, symlink creation) and may execute commands found in the repo. If the agent invokes the skill autonomously, these actions could modify repository state without a human review step — prefer dry-run and explicit user confirmation before writing/committing changes.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install compound-eng-md-docs
  3. After installation, invoke the skill by name or use /compound-eng-md-docs
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v3.0.4
v3.0.4
v3.0.3
v3.0.3
v3.0.2
v3.0.2
v3.0.1
v3.0.1
v3.0.0
v3.0.0
v2.56.1
v2.56.1
v2.56.0
v2.56.0
v2.55.1
v2.55.1
v2.55.0
v2.55.0
v2.53.2
v2.53.2
v2.53.0
v2.53.0
Metadata
Slug compound-eng-md-docs
Version 3.0.4
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 11
Frequently Asked Questions

What is ia-md-docs?

Manages project documentation: CLAUDE.md, AGENTS.md, README.md, CONTRIBUTING.md. Use when asked to update, create, or init these context files. Not for gener... It is an AI Agent Skill for Claude Code / OpenClaw, with 272 downloads so far.

How do I install ia-md-docs?

Run "/install compound-eng-md-docs" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is ia-md-docs free?

Yes, ia-md-docs is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does ia-md-docs support?

ia-md-docs is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created ia-md-docs?

It is built and maintained by Ilia Alshanetsky (@iliaal); the current version is v3.0.4.

💬 Comments