← 返回 Skills 市场
iliaal

ia-md-docs

作者 Ilia Alshanetsky · GitHub ↗ · v3.0.4 · MIT-0
cross-platform ✓ 安全检测通过
272
总下载
0
收藏
0
当前安装
11
版本数
在 OpenClaw 中安装
/install compound-eng-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...
使用说明 (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
安全使用建议
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.
功能分析
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.
能力标签
cryptocan-make-purchases
能力评估
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.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install compound-eng-md-docs
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /compound-eng-md-docs 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
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
元数据
Slug compound-eng-md-docs
版本 3.0.4
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 11
常见问题

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... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 272 次。

如何安装 ia-md-docs?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install compound-eng-md-docs」即可一键安装,无需额外配置。

ia-md-docs 是免费的吗?

是的,ia-md-docs 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

ia-md-docs 支持哪些平台?

ia-md-docs 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 ia-md-docs?

由 Ilia Alshanetsky(@iliaal)开发并维护,当前版本 v3.0.4。

💬 留言讨论