agents-md-writer
AGENTS.md Writer
Edit AGENTS.md guidance to be short, specific, and executable. Prefer repository facts over generic advice. Default to editing existing instruction files; create new files only when no suitable file exists for the scope.
Workflow
- Identify target tools and audit instruction sources.
- Detect which agentic tools must read the file (for example Codex, OpenCode, Claude Code, Cursor).
- Inspect repo-root and nested instruction files already in use (
AGENTS.mdand tool-specific alternatives). - Read the matching tool docs for discovery/precedence behavior before editing.
- Read references/openai-codex-agents-md.md only when Codex behavior matters.
- Prefer edit-in-place over scaffolding.
- Start from the closest existing instruction file and keep diffs minimal.
- Create a new file only when guidance is missing for a scope or precedence must change.
- Collect project facts before writing.
- Read package manager scripts, CI workflows, linters/formatters, and test commands.
- Extract only commands and constraints that are true in the current repository.
- Add instructions only for recurring failures agents cannot resolve reliably from code discovery.
- Draft the smallest useful change.
- Include only instructions an agent cannot infer quickly from code.
- Use imperative bullets with concrete commands and paths.
- Cover setup/build/test, code conventions, testing expectations, safety constraints, and change-management rules.
- Prefer positive direction over broad prohibitions when possible.
- If a behavior can be fixed in codebase structure/tooling, prefer that over adding instruction text.
- Place overrides intentionally.
- Put shared defaults at repo root.
- Put subproject-specific guidance near the subtree it governs.
- Use
AGENTS.override.mdonly when replacing same-directoryAGENTS.mdis intentional. - Keep cross-tool guidance in common files; isolate tool-specific quirks to clearly labeled sections.
- Verify and tighten.
- Remove duplicates from README or docs unless needed for execution.
- Remove vague guidance.
- Ensure each rule is observable, testable, or clearly enforceable.
- Validate behavior from repo root and a nested subdirectory with each target tool when possible.
- Remove architecture summaries and generated context that tools can infer from source in seconds.
Authoring Rules
- Prefer exact commands over abstract advice.
- Encode hard constraints: security boundaries, data policies, migration safeguards, approval gates.
- Keep architecture prose brief; link docs by path instead.
- Keep instructions concise to avoid truncation by byte limits.
- Resolve conflicts explicitly so nearest-file precedence is unambiguous.
- Keep guidance tool-agnostic unless a rule is truly tool-specific.
- Treat instruction text as a patch for repeated failures, not a full project explainer.
- Avoid "pink elephant" phrasing (for example broad "do not use X") unless required for safety/compliance.
Recommended Skeleton
# AGENTS.md
## Setup commands
- Install deps: `...`
- Start dev env: `...`
## Build and test
- Full checks: `...`
- Fast checks for touched package: `...`
## Code conventions
- Formatter/linter commands: `...`
- Framework or language constraints: `...`
## Change expectations
- Add or update tests for changed behavior.
- Update docs in `...` when public APIs change.
## Safety and approvals
- Do not ...
- Ask before ...
## Tool-specific notes (optional)
- Codex: ...
- OpenCode: ...
Debug Discovery
- Use each target tool's introspection or dry-run command to report active instruction files.
- Compare behavior from repo root and a nested subdirectory to confirm precedence.
- If source attribution is unclear, inspect tool logs/session traces when available.
- If instructions are missing, verify filename support, precedence rules, non-empty files, size limits, and restart requirements.
Resources
- references/openai-codex-agents-md.md: Codex-specific discovery order, override behavior, fallback filename config, limits, and verification commands.
More from sjunepark/custom-skills
summarize
Use the steipete/summarize CLI to summarize URLs, local files, stdin, YouTube links, podcasts, and media with LLM models. Trigger when users ask to install or run summarize, configure model/provider API keys, tune output flags (length/language/json/extract/slides), set defaults in ~/.summarize/config.json, or troubleshoot summarize CLI errors.
41skills-cli
Operate the skills CLI to discover, install, list, update, remove, and initialize skills for Codex, Claude Code, and Pi. Use when users ask to manage skills from skills.sh, restore from lock files, sync skills from node_modules, or troubleshoot agent/installation scope (project vs global).
36post-implementation-review
Manually review already-implemented code for design flaws, abstraction issues, structural problems, or refactors that only became clear in real code. Use only when the user explicitly asks for a post-implementation review, explicitly asks whether recent implementation work revealed design or structure problems, or explicitly wants refactor recommendations after the code exists. Do not auto-trigger for ordinary implementation, debugging, explanation, or generic code review requests. Prefer embedded snippets with file-path comments over editor-oriented file and line references. Prioritize real design, ownership, abstraction, and organization weaknesses over minor local polish, call out real tradeoffs, and separate straightforward recommendations from items worth discussion.
29architecture-md-writer
Create, update, review, and split ARCHITECTURE.md files that explain a codebase's shape, major components, runtime flow, code map, and important invariants. Use when a repository lacks architecture docs, an existing ARCHITECTURE.md is stale or too detailed, a subsystem needs its own nested ARCHITECTURE.md, or a root architecture doc should link to deeper module architecture docs.
27source-investigator
Investigate external libraries, frameworks, and unfamiliar repositories by cloning the exact repo into a project-local temp workspace, ignoring that workspace in git, and delegating code reading to focused subagents so the main thread stays clean. Use whenever docs are incomplete, version-specific behavior matters, you need to learn how a codebase works, or exploring lots of source inline would pollute the main context.
24tailwind-semantic-theme
Set up or refactor Tailwind v4 app theming around shadcn-compatible semantic CSS tokens without using shadcn itself. Use only when the user explicitly asks for this skill by name or explicitly asks for this exact methodology: OKLCH theme variables in `:root` and `.dark`, class-based dark mode, `@theme inline`, and shadcn-compatible token naming for future UI compatibility.
21