doc-claude-md
Claude MD
Create and maintain CLAUDE.md and AGENTS.md documentation files.
Workflow
Creating New Docs
For projects without CLAUDE.md/AGENTS.md:
scripts/init_docs.py [--path <project>]
This will:
- Analyze codebase (detect project type, extract info)
- Generate directory tree (using cli-tree skill)
- Create CLAUDE.md (pointer file)
- Create AGENTS.md (full documentation with frontmatter)
Validating/Updating Existing Docs
For projects with existing documentation:
scripts/validate_docs.py [--path <project>] [--fix]
This will:
- Check structure (required sections present)
- Verify codebase consistency (paths exist, commands valid)
- Detect staleness (files changed since last validation)
- Apply fixes if
--fixflag provided - Update
last_validatedtimestamp
Project Type Detection
The init script auto-detects project type:
| Files Present | Detected Type |
|---|---|
package.json with react/next |
nodejs-react |
package.json with express |
nodejs-api |
package.json (other) |
nodejs-library |
pyproject.toml / setup.py |
python |
Cargo.toml |
rust |
go.mod |
go |
Multiple package.json |
monorepo |
.claude/skills/ present |
Adds skills framework section |
Generated Files
CLAUDE.md:
# Claude Code Instructions
See @AGENTS.md for detailed instructions.
AGENTS.md:
---
last_validated: 2026-01-21T12:00:00Z
project_type: nodejs-library
---
# Agent Instructions: project-name
[Content based on template and codebase analysis]
Validation Checks
- Structure: Required sections exist
- Content: No TODO placeholders, valid links
- Consistency: Paths in docs exist, commands in package.json/pyproject.toml
- Freshness: Compares file modification dates vs last_validated
Template
See references/template.md for the AGENTS.md template structure.
More from molechowski/agent-skills
dev-task-queue
Persistent cross-session task queue for AI agents using Claude Code Tasks schema. Add, claim, complete, and reassign tasks with move-based locking, dependency tracking (blocks/blockedBy), conversation transcript linking, and staleness detection. Use for: (1) saving tasks for future agent sessions, (2) cross-session task persistence, (3) multi-agent task coordination, (4) linking conversation transcripts to tasks. Triggers: task queue, save task, agent task, queue task, persistent task, cross-session task, task for agent.
2res-x
Fetch X/Twitter tweet content by URL and search X posts. Resolves tweet links that WebFetch cannot scrape. Use for: reading saved X/Twitter links, fetching tweet content from URLs, searching X for posts on a topic, batch-processing X links from notes. Triggers: x.com link, twitter.com link, fetch tweet, read tweet, what does this tweet say, X search, twitter search.
1res-deep
Iterative multi-round deep research with structured analysis frameworks. Use for: deep research on a topic, compare X vs Y, landscape analysis, evaluate options for a decision, deep dive into a technology, comprehensive research with cross-referencing. Triggers: deep research, compare, landscape, evaluate, deep dive, comprehensive research, which is better, should we use.
1res-web
Research topics with web search. Use when: researching a topic or concept, finding current information, answering factual questions, comparing options or technologies. Triggers: research [topic], find out about, what are the best practices for, research the latest on.
1dev-rlm
Recursive codebase analysis using the RLM paradigm. Use when: analyzing large codebases (100+ files), investigating cross-cutting patterns, recursive decomposition of complex code questions, scanning for issues across entire repos. Triggers: analyze this codebase, how does X work across the codebase, scan all files for Y, recursive analysis, RLM.
1git-repo
Create GitHub repositories via OpenTofu in the github-infrastructure repo. Clones repo to tmp, generates repository module (main.tf, outputs.tf, versions.tf), updates root main.tf and outputs.tf, runs fmt+validate, pushes and creates PR. Use when: (1) creating a new GitHub repo, (2) adding a repository to the org, (3) provisioning a new project/spec/infra/template repo. Triggers: new repo, create repository, add repo, github repository, provision repo.
1