[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M75M194CQHSTXFXMD0C1T1HN":3,"skill-same:01M75M194CQHSTXFXMD0C1T1HN":44},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":14,"repositoryHtmlUrl":27,"repositoryHomepageUrl":6,"ownerHtmlUrl":28,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":29,"install":30,"resources":43},"01M75M194CQHSTXFXMD0C1T1HN","agents-md-writer",null,"Write AGENTS.md files for codebases\u002Fprojects. Covers what sections to include, what to skip, format rules, and caveman-style variant. Use when user asks: create AGENTS.md, write agent instructions, make a project guide for AI, how to structure AGENTS.md, what to put in AGENTS.md, AGENTS.md template, or similar. Also use when asked to create CLAUDE.md, .cursorrules, or .github\u002Fcopilot-instructions.md.","shivam2014\u002Fpi-files","shivam2014","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F9844921?v=4","01M75M1325NPT6T3NRWXS00WMZ","Shivam Bhalla","01M75M1337SYAAT4GAPWWES6J4",0,"MIT","https:\u002F\u002Fgithub.com\u002Fshivam2014\u002Fpi-files\u002Fblob\u002Fmain\u002Fagent\u002Fskills\u002Fagents-md-writer\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: agents-md-writer\ndescription: \"Write AGENTS.md files for codebases\u002Fprojects. Covers what sections to include, what to skip, format rules, and caveman-style variant. Use when user asks: create AGENTS.md, write agent instructions, make a project guide for AI, how to structure AGENTS.md, what to put in AGENTS.md, AGENTS.md template, or similar. Also use when asked to create CLAUDE.md, .cursorrules, or .github\u002Fcopilot-instructions.md.\"\n---\n\n# AGENTS.md Writer\n\nWrite AGENTS.md (and similar CLAUDE.md \u002F .cursorrules) for projects. This guide = what goes in, what stays out, how to format.\n\n---\n\n## What AGENTS.md Is\n\nPlain markdown file in project root. Tells coding agents (pi, Cursor, Claude Code, Copilot, Codex) how to work in this codebase. One page of high-signal instructions. Agent reads it at session start.\n\n**Not a README.** README = dev humans. AGENTS.md = AI agent. Different audience, different format.\n\n**30+ tools read it.** Format is intentionally unopinionated.\n\n---\n\n## What Goes In\n\n### 1. Project Overview (1-2 lines)\nTech stack with versions. What the project does. One sentence.\n\n```\nTypeScript + React 18 + Vite + Tailwind. Chrome extension (MV3) for auto-filling job forms.\n```\n\n### 2. Quick Commands (THE most used section)\nCopy-pasteable CLI commands. One per line. Comment after.\n\n```bash\nnpm run dev                  # start dev server\nnpm test -- --watch         # run tests in watch mode\nnpm run build               # production build\nnode scripts\u002Fdeploy.mjs     # deploy to staging\n```\n\n**Rules:** Exact commands. Not \"run tests\" but `pnpm vitest run`. Include flags. Include working directory if not root.\n\n### 3. Architecture \u002F Key Files\nAnnotated tree or table. What each file does. Not full file listing — only files agent touches.\n\n```\nsrc\u002F\n├── app.tsx          # Root component, router setup\n├── components\u002F      # UI components (Button, Card, Modal)\n├── lib\u002Fapi.ts       # API client, all external calls go here\n└── utils\u002Fformat.ts  # Date\u002Fnumber formatting helpers\n```\n\nor table:\n\n| File | Purpose |\n|------|---------|\n| `src\u002Flib\u002Fapi.ts` | All API calls. Add new endpoints here. |\n| `src\u002Fstores\u002Fauth.ts` | Auth state. Tokens, login\u002Flogout. |\n\n### 4. Code Style & Conventions\nSpecific, enforceable rules. Not \"write clean code.\"\n\nGood:\n- 2-space indent, no semicolons\n- Named exports only (no default exports)\n- React: function components, hooks for state\n- CSS: Tailwind utility classes, no custom CSS\n- Error handling: return `{ok, error}` tuples, no throw\n\nBad:\n- Write clean, maintainable code\n- Use best practices\n- Follow the style guide (link breaks agent attention budget)\n\n### 5. Testing Instructions\nExact commands. File patterns. What to test.\n\n```\nTests: vitest in __tests__\u002F next to source.\nRun: pnpm vitest run --reporter=verbose\nPattern: src\u002F**\u002F*.test.ts\nRequirement: test error cases, not just happy path\n```\n\n### 6. Git Workflow \u002F Commit Rules\nOnly if project has specific conventions.\n\n```\nBranch: feature\u002Fdescription\nCommit: conventional commits (feat:, fix:, chore:, docs:)\nPR: squash merge, link issue\n```\n\n### 7. Boundaries (Critical)\nWhat agent should NEVER do. Prevents damage.\n\n```\nNever:\n- Modify package.json without asking\n- Edit generated files in dist\u002F or build\u002F\n- Add new dependencies without approval\n- Change API response formats\n- Delete files\n```\n\n### 8. Key Learnings \u002F Pitfalls (Optional but gold)\nTricky things about this project. Saves agent hours.\n\n```\nKey Learnings:\n- Extension reload: MUST reload page after reloading extension. Old content script stays otherwise.\n- Oracle combobox: Click toggle button (#{id}-toggle-button), not the input. Value in button text, not input.value.\n- Synthetic click() doesn't work on Oracle React buttons. Use PointerEvent + mousedown + mouseup + click.\n```\n\n### 9. Session Workflow (Optional)\nStep sequence for common tasks. Helps agent stay on track.\n\n```\n1. Launch: npm run dev\n2. Inspect: node scripts\u002Ftest\u002Finspect.mjs\n3. Test fields one by one\n4. Run Fill All at end\n5. Commit after each fix\n```\n\n---\n\n## What NOT to Put In\n\n### ❌ README Duplication\nDon't copy README content. Princeton study: -2% success, +23% cost when duplicating. AGENTS.md = what agent needs to work, not what users need to use.\n\n### ❌ Vague Prompts\n\"You are a helpful coding assistant\" — wastes context. Be specific: \"You are a test engineer who writes tests for React components.\"\n\n### ❌ Full Style Guides\nDon't paste entire ESLint\u002FPrettier config or style guide. Agent already has implicit knowledge. Just note deviations.\n\n### ❌ Auto-Generated Content\nDon't auto-generate AGENTS.md from README + file tree. Results in low-signal noise. Write manually.\n\n### ❌ Verbose Prose\nOne paragraph max per section. Fragments OK. Agent skims, not reads.\n\n### ❌ Links to External Docs\nAgent can't browse well mid-task. Inline what matters. Use `[name](path)` for on-demand docs in same repo.\n\n### ❌ Long Lists (>10 items)\nAgent attention budget limited. Top 5-7 items per section max.\n\n### ❌ File Permissions \u002F Ownership\nAgent doesn't care who owns what. Skip.\n\n### ❌ Installation Instructions\nUnless unusual. `npm install` is assumed knowledge.\n\n### ❌ Outdated\u002FSuperseded Information\nEvery stale line erodes trust. Keep minimal and update when code changes.\n\n---\n\n## Format Rules\n\n- **Plain Markdown** only. No YAML frontmatter in the AGENTS.md itself (that's only for pi skills).\n- **20-30 lines ideal.** Max 32 KiB (Codex truncates beyond).\n- **H1** = project name. **H2** = sections. **H3** = subsections.\n- **Tables** for file→purpose mappings.\n- **Code blocks** for commands and examples.\n- **Short lines.** One idea per line. Fragments OK.\n- **Bold** for rules and warnings. `Code` for filenames, commands, types.\n- **Shorter beats longer.** Every line competes for attention budget.\n\n---\n\n## Location & Naming\n\n| File | Tool That Reads It |\n|------|-------------------|\n| `AGENTS.md` (root) | pi, OpenAI Codex, Cline, many others |\n| `CLAUDE.md` (root) | Claude Code |\n| `.cursor\u002Frules\u002F` (dir) | Cursor |\n| `.github\u002Fcopilot-instructions.md` | GitHub Copilot |\n| `GEMINI.md` (root) | Gemini CLI |\n\n**Rules:**\n- Root AGENTS.md applies project-wide\n- Nested AGENTS.md overrides for subdirectory (Codex uses 88 AGENTS.md files)\n- Nearest-file-in-directory-tree precedence\n- Can have multiple files for different tools (AGENTS.md + CLAUDE.md + .cursorrules)\n- pi treats AGENTS.md as a skill — loaded automatically at session start\n\n---\n\n## Caveman-Style Variant\n\nFor projects that want ultra-terse agent instructions. Adapt from pi's own AGENTS.md.\n\n**Changes from normal AGENTS.md:**\n- Drop articles (a\u002Fan\u002Fthe)\n- Drop filler (just\u002Freally\u002Fbasically\u002Factually\u002Fsimply)\n- Drop pleasantries (sure\u002Fcertainly\u002Fhappy to)\n- Fragments OK. \"Not full sentences.\"\n- Short synonyms: big→large, fix→repair, implement→build\n- One idea per line. No paragraphs.\n- Use bold for rules. Use `code` for exact commands.\n- Pattern: [thing] [action] [reason].\n\n**Caveman section examples:**\n\n```\n## Commands\nnpm run dev          # start\nnpm test -- --watch  # test loop\nnpm run build        # ship\n\n## Style\n- 2-space indent. No semi.\n- Named exports. No default.\n- Tailwind classes. No custom CSS.\n\n## Never\n- Edit package.json.\n- Touch dist\u002F files.\n- Add deps w\u002Fo ask.\n\n## Pitfalls\n- Extension reload: MUST page.reload() too. Else old code runs.\n- Oracle combobox: Click toggle button, not input.\n```\n\n**Caveman meta-rule:** Think short. No mental filler. If you can say it in 3 words, do.\n\n---\n\n## Templates\n\n### Minimal (20 lines)\n\n```\n# Project Name\n\nTech: React 18 + TypeScript + Vite + Tailwind.\n\n## Commands\nnpm run dev            # dev server\nnpm test               # run tests\nnpm run build          # production build\n\n## Structure\nsrc\u002F\n├── app.tsx           # Root\n├── components\u002F       # Reusable UI\n├── lib\u002Fapi.ts        # All API calls\n└── types\u002F            # TypeScript types\n\n## Style\n- 2-space indent, no semicolons\n- Named exports only\n- React function components + hooks\n\n## Boundaries\n- Never modify package.json without asking\n- Don't edit generated files in dist\u002F\n```\n\n### Standard (40 lines)\n\n```\n# Project Name\n\nFastAPI + PostgreSQL + Redis. Async web service for X.\n\n---\n\n## Quick Commands\n```bash\npoetry run uvicorn app.main:app --reload  # dev\npoetry run pytest -v                       # test\npoetry run ruff check .                    # lint\n```\n\n---\n\n## Key Files\n| File | Purpose |\n|------|---------|\n| `app\u002Fmain.py` | App entry, routes |\n| `app\u002Fapi\u002Fv1\u002F` | API endpoints |\n| `app\u002Fmodels\u002F` | SQLAlchemy models |\n| `app\u002Fservices\u002F` | Business logic |\n\n---\n\n## Testing\n- pytest with async support. Tests in `tests\u002F`.\n- Run: `poetry run pytest tests\u002Fapi\u002F` for API tests\n- Mock external services with `pytest-httpx`\n\n---\n\n## Code Style\n- 4-space indent, line length 100\n- Type hints everywhere. mypy strict mode.\n- Error handling: return `Result[T, Error]` types\n- Async def for I\u002FO, sync for CPU\n\n---\n\n## Git\n- Branch from main: `feat\u002Fshort-description`\n- Commits: conventional (feat\u002Ffix\u002Fchore)\n- Merge: squash + merge\n\n---\n\n## Never\n- Direct DB writes outside service layer\n- Expose secrets in env vars without prefix\n- Add deps without discussion\n```\n\n### Caveman (25 lines)\n\n```\n# Project Name\n\nStack: FastAPI + PostgreSQL + Redis. Async web service.\n\n## Commands\npoetry run uvicorn app.main:app --reload  # dev\npoetry run pytest -v                       # test\npoetry run ruff check .                    # lint\n\n## Files\n| File | Why |\n|------|-----|\n| app\u002Fmain.py | Entry + routes |\n| app\u002Fapi\u002Fv1\u002F | API endpoints |\n| app\u002Fmodels\u002F | DB models |\n| app\u002Fservices\u002F | Business logic |\n\n## Rules\n- 4-space indent. Type hints everywhere.\n- Result[T, Error] returns. No exceptions.\n- Async for I\u002FO. Sync for CPU.\n\n## Boundaries\n- No direct DB writes outside services.\n- No deps w\u002Fo ask.\n- No secrets in code.\n\n## Pitfalls\n- Mock external services with pytest-httpx.\n- Model changes need alembic revision.\n```\n\n---\n\n## Writing Process\n\n1. **Scout first**: Read project README, package.json, file tree, test config, lint config. Understand stack.\n2. **Extract commands**: From package.json scripts, Makefile, CI config. Get exact flags.\n3. **Map architecture**: Key files list. What each does. Which ones agent edits.\n4. **Find rules**: From CONTRIBUTING.md, PR templates, code review comments, style guides.\n5. **Document pitfalls**: From git history, issue tracker, developer chats. What breaks often.\n6. **Write minimal first**: 20 lines. Then expand if needed. Never start verbose.\n7. **Trim**: Read every line. If agent can infer it, delete it. If it's obvious, delete it.\n8. **Review**: Does this help agent work faster? If no, purge.\n\n---\n\n## Anti-Patterns Checklist\n\n- [ ] No README duplication?\n- [ ] No vague prompts?\n- [ ] No full style guides?\n- [ ] Commands have exact flags?\n- [ ] Each section \u003C7 items?\n- [ ] Total \u003C30 lines (unless unavoidable)?\n- [ ] No external links that break context?\n- [ ] Boundaries section present?\n- [ ] No auto-generated content?\n- [ ] Caveman-style if project tone supports it?\n\n---\n\nAfter writing, verify:\n1. `wc -l ~\u002F.pi\u002Fagent\u002Fskills\u002Fagents-md-writer\u002FSKILL.md`\n2. `head -5 ~\u002F.pi\u002Fagent\u002Fskills\u002Fagents-md-writer\u002FSKILL.md`\n3. `grep \"name:\" ~\u002F.pi\u002Fagent\u002Fskills\u002Fagents-md-writer\u002FSKILL.md`\n4. `grep \"description:\" ~\u002F.pi\u002Fagent\u002Fskills\u002Fagents-md-writer\u002FSKILL.md | head -c 80`\n","# AGENTS.md Writer\n\nWrite AGENTS.md (and similar CLAUDE.md \u002F .cursorrules) for projects. This guide = what goes in, what stays out, how to format.\n\n---\n\n## What AGENTS.md Is\n\nPlain markdown file in project root. Tells coding agents (pi, Cursor, Claude Code, Copilot, Codex) how to work in this codebase. One page of high-signal instructions. Agent reads it at session start.\n\n**Not a README.** README = dev humans. AGENTS.md = AI agent. Different audience, different format.\n\n**30+ tools read it.** Format is intentionally unopinionated.\n\n---\n\n## What Goes In\n\n### 1. Project Overview (1-2 lines)\nTech stack with versions. What the project does. One sentence.\n\n```\nTypeScript + React 18 + Vite + Tailwind. Chrome extension (MV3) for auto-filling job forms.\n```\n\n### 2. Quick Commands (THE most used section)\nCopy-pasteable CLI commands. One per line. Comment after.\n\n```bash\nnpm run dev                  # start dev server\nnpm test -- --watch         # run tests in watch mode\nnpm run build               # production build\nnode scripts\u002Fdeploy.mjs     # deploy to staging\n```\n\n**Rules:** Exact commands. Not \"run tests\" but `pnpm vitest run`. Include flags. Include working directory if not root.\n\n### 3. Architecture \u002F Key Files\nAnnotated tree or table. What each file does. Not full file listing — only files agent touches.\n\n```\nsrc\u002F\n├── app.tsx          # Root component, router setup\n├── components\u002F      # UI components (Button, Card, Modal)\n├── lib\u002Fapi.ts       # API client, all external calls go here\n└── utils\u002Fformat.ts  # Date\u002Fnumber formatting helpers\n```\n\nor table:\n\n| File | Purpose |\n|------|---------|\n| `src\u002Flib\u002Fapi.ts` | All API calls. Add new endpoints here. |\n| `src\u002Fstores\u002Fauth.ts` | Auth state. Tokens, login\u002Flogout. |\n\n### 4. Code Style & Conventions\nSpecific, enforceable rules. Not \"write clean code.\"\n\nGood:\n- 2-space indent, no semicolons\n- Named exports only (no default exports)\n- React: function components, hooks for state\n- CSS: Tailwind utility classes, no custom CSS\n- Error handling: return `{ok, error}` tuples, no throw\n\nBad:\n- Write clean, maintainable code\n- Use best practices\n- Follow the style guide (link breaks agent attention budget)\n\n### 5. Testing Instructions\nExact commands. File patterns. What to test.\n\n```\nTests: vitest in __tests__\u002F next to source.\nRun: pnpm vitest run --reporter=verbose\nPattern: src\u002F**\u002F*.test.ts\nRequirement: test error cases, not just happy path\n```\n\n### 6. Git Workflow \u002F Commit Rules\nOnly if project has specific conventions.\n\n```\nBranch: feature\u002Fdescription\nCommit: conventional commits (feat:, fix:, chore:, docs:)\nPR: squash merge, link issue\n```\n\n### 7. Boundaries (Critical)\nWhat agent should NEVER do. Prevents damage.\n\n```\nNever:\n- Modify package.json without asking\n- Edit generated files in dist\u002F or build\u002F\n- Add new dependencies without approval\n- Change API response formats\n- Delete files\n```\n\n### 8. Key Learnings \u002F Pitfalls (Optional but gold)\nTricky things about this project. Saves agent hours.\n\n```\nKey Learnings:\n- Extension reload: MUST reload page after reloading extension. Old content script stays otherwise.\n- Oracle combobox: Click toggle button (#{id}-toggle-button), not the input. Value in button text, not input.value.\n- Synthetic click() doesn't work on Oracle React buttons. Use PointerEvent + mousedown + mouseup + click.\n```\n\n### 9. Session Workflow (Optional)\nStep sequence for common tasks. Helps agent stay on track.\n\n```\n1. Launch: npm run dev\n2. Inspect: node scripts\u002Ftest\u002Finspect.mjs\n3. Test fields one by one\n4. Run Fill All at end\n5. Commit after each fix\n```\n\n---\n\n## What NOT to Put In\n\n### ❌ README Duplication\nDon't copy README content. Princeton study: -2% success, +23% cost when duplicating. AGENTS.md = what agent needs to work, not what users need to use.\n\n### ❌ Vague Prompts\n\"You are a helpful coding assistant\" — wastes context. Be specific: \"You are a test engineer who writes tests for React components.\"\n\n### ❌ Full Style Guides\nDon't paste entire ESLint\u002FPrettier config or style guide. Agent already has implicit knowledge. Just note deviations.\n\n### ❌ Auto-Generated Content\nDon't auto-generate AGENTS.md from README + file tree. Results in low-signal noise. Write manually.\n\n### ❌ Verbose Prose\nOne paragraph max per section. Fragments OK. Agent skims, not reads.\n\n### ❌ Links to External Docs\nAgent can't browse well mid-task. Inline what matters. Use `[name](path)` for on-demand docs in same repo.\n\n### ❌ Long Lists (>10 items)\nAgent attention budget limited. Top 5-7 items per section max.\n\n### ❌ File Permissions \u002F Ownership\nAgent doesn't care who owns what. Skip.\n\n### ❌ Installation Instructions\nUnless unusual. `npm install` is assumed knowledge.\n\n### ❌ Outdated\u002FSuperseded Information\nEvery stale line erodes trust. Keep minimal and update when code changes.\n\n---\n\n## Format Rules\n\n- **Plain Markdown** only. No YAML frontmatter in the AGENTS.md itself (that's only for pi skills).\n- **20-30 lines ideal.** Max 32 KiB (Codex truncates beyond).\n- **H1** = project name. **H2** = sections. **H3** = subsections.\n- **Tables** for file→purpose mappings.\n- **Code blocks** for commands and examples.\n- **Short lines.** One idea per line. Fragments OK.\n- **Bold** for rules and warnings. `Code` for filenames, commands, types.\n- **Shorter beats longer.** Every line competes for attention budget.\n\n---\n\n## Location & Naming\n\n| File | Tool That Reads It |\n|------|-------------------|\n| `AGENTS.md` (root) | pi, OpenAI Codex, Cline, many others |\n| `CLAUDE.md` (root) | Claude Code |\n| `.cursor\u002Frules\u002F` (dir) | Cursor |\n| `.github\u002Fcopilot-instructions.md` | GitHub Copilot |\n| `GEMINI.md` (root) | Gemini CLI |\n\n**Rules:**\n- Root AGENTS.md applies project-wide\n- Nested AGENTS.md overrides for subdirectory (Codex uses 88 AGENTS.md files)\n- Nearest-file-in-directory-tree precedence\n- Can have multiple files for different tools (AGENTS.md + CLAUDE.md + .cursorrules)\n- pi treats AGENTS.md as a skill — loaded automatically at session start\n\n---\n\n## Caveman-Style Variant\n\nFor projects that want ultra-terse agent instructions. Adapt from pi's own AGENTS.md.\n\n**Changes from normal AGENTS.md:**\n- Drop articles (a\u002Fan\u002Fthe)\n- Drop filler (just\u002Freally\u002Fbasically\u002Factually\u002Fsimply)\n- Drop pleasantries (sure\u002Fcertainly\u002Fhappy to)\n- Fragments OK. \"Not full sentences.\"\n- Short synonyms: big→large, fix→repair, implement→build\n- One idea per line. No paragraphs.\n- Use bold for rules. Use `code` for exact commands.\n- Pattern: [thing] [action] [reason].\n\n**Caveman section examples:**\n\n```\n## Commands\nnpm run dev          # start\nnpm test -- --watch  # test loop\nnpm run build        # ship\n\n## Style\n- 2-space indent. No semi.\n- Named exports. No default.\n- Tailwind classes. No custom CSS.\n\n## Never\n- Edit package.json.\n- Touch dist\u002F files.\n- Add deps w\u002Fo ask.\n\n## Pitfalls\n- Extension reload: MUST page.reload() too. Else old code runs.\n- Oracle combobox: Click toggle button, not input.\n```\n\n**Caveman meta-rule:** Think short. No mental filler. If you can say it in 3 words, do.\n\n---\n\n## Templates\n\n### Minimal (20 lines)\n\n```\n# Project Name\n\nTech: React 18 + TypeScript + Vite + Tailwind.\n\n## Commands\nnpm run dev            # dev server\nnpm test               # run tests\nnpm run build          # production build\n\n## Structure\nsrc\u002F\n├── app.tsx           # Root\n├── components\u002F       # Reusable UI\n├── lib\u002Fapi.ts        # All API calls\n└── types\u002F            # TypeScript types\n\n## Style\n- 2-space indent, no semicolons\n- Named exports only\n- React function components + hooks\n\n## Boundaries\n- Never modify package.json without asking\n- Don't edit generated files in dist\u002F\n```\n\n### Standard (40 lines)\n\n```\n# Project Name\n\nFastAPI + PostgreSQL + Redis. Async web service for X.\n\n---\n\n## Quick Commands\n```bash\npoetry run uvicorn app.main:app --reload  # dev\npoetry run pytest -v                       # test\npoetry run ruff check .                    # lint\n```\n\n---\n\n## Key Files\n| File | Purpose |\n|------|---------|\n| `app\u002Fmain.py` | App entry, routes |\n| `app\u002Fapi\u002Fv1\u002F` | API endpoints |\n| `app\u002Fmodels\u002F` | SQLAlchemy models |\n| `app\u002Fservices\u002F` | Business logic |\n\n---\n\n## Testing\n- pytest with async support. Tests in `tests\u002F`.\n- Run: `poetry run pytest tests\u002Fapi\u002F` for API tests\n- Mock external services with `pytest-httpx`\n\n---\n\n## Code Style\n- 4-space indent, line length 100\n- Type hints everywhere. mypy strict mode.\n- Error handling: return `Result[T, Error]` types\n- Async def for I\u002FO, sync for CPU\n\n---\n\n## Git\n- Branch from main: `feat\u002Fshort-description`\n- Commits: conventional (feat\u002Ffix\u002Fchore)\n- Merge: squash + merge\n\n---\n\n## Never\n- Direct DB writes outside service layer\n- Expose secrets in env vars without prefix\n- Add deps without discussion\n```\n\n### Caveman (25 lines)\n\n```\n# Project Name\n\nStack: FastAPI + PostgreSQL + Redis. Async web service.\n\n## Commands\npoetry run uvicorn app.main:app --reload  # dev\npoetry run pytest -v                       # test\npoetry run ruff check .                    # lint\n\n## Files\n| File | Why |\n|------|-----|\n| app\u002Fmain.py | Entry + routes |\n| app\u002Fapi\u002Fv1\u002F | API endpoints |\n| app\u002Fmodels\u002F | DB models |\n| app\u002Fservices\u002F | Business logic |\n\n## Rules\n- 4-space indent. Type hints everywhere.\n- Result[T, Error] returns. No exceptions.\n- Async for I\u002FO. Sync for CPU.\n\n## Boundaries\n- No direct DB writes outside services.\n- No deps w\u002Fo ask.\n- No secrets in code.\n\n## Pitfalls\n- Mock external services with pytest-httpx.\n- Model changes need alembic revision.\n```\n\n---\n\n## Writing Process\n\n1. **Scout first**: Read project README, package.json, file tree, test config, lint config. Understand stack.\n2. **Extract commands**: From package.json scripts, Makefile, CI config. Get exact flags.\n3. **Map architecture**: Key files list. What each does. Which ones agent edits.\n4. **Find rules**: From CONTRIBUTING.md, PR templates, code review comments, style guides.\n5. **Document pitfalls**: From git history, issue tracker, developer chats. What breaks often.\n6. **Write minimal first**: 20 lines. Then expand if needed. Never start verbose.\n7. **Trim**: Read every line. If agent can infer it, delete it. If it's obvious, delete it.\n8. **Review**: Does this help agent work faster? If no, purge.\n\n---\n\n## Anti-Patterns Checklist\n\n- [ ] No README duplication?\n- [ ] No vague prompts?\n- [ ] No full style guides?\n- [ ] Commands have exact flags?\n- [ ] Each section \u003C7 items?\n- [ ] Total \u003C30 lines (unless unavoidable)?\n- [ ] No external links that break context?\n- [ ] Boundaries section present?\n- [ ] No auto-generated content?\n- [ ] Caveman-style if project tone supports it?\n\n---\n\nAfter writing, verify:\n1. `wc -l ~\u002F.pi\u002Fagent\u002Fskills\u002Fagents-md-writer\u002FSKILL.md`\n2. `head -5 ~\u002F.pi\u002Fagent\u002Fskills\u002Fagents-md-writer\u002FSKILL.md`\n3. `grep \"name:\" ~\u002F.pi\u002Fagent\u002Fskills\u002Fagents-md-writer\u002FSKILL.md`\n4. `grep \"description:\" ~\u002F.pi\u002Fagent\u002Fskills\u002Fagents-md-writer\u002FSKILL.md | head -c 80`\n",{"name":5,"description":7},"main","ae78deab08a1a02b9f591b45f9a4358c92f54985","agent\u002Fskills\u002Fagents-md-writer","https:\u002F\u002Fgithub.com\u002Fshivam2014\u002Fpi-files","https:\u002F\u002Fgithub.com\u002Fshivam2014","2026-10-29 01:40:21",{"source":8,"skillName":5,"commands":31,"prompt":41,"zipAvailable":42},[32,35,38],{"tool":33,"command":34},"npx","npx skills add shivam2014\u002Fpi-files --skill agents-md-writer",{"tool":36,"command":37},"bunx","bunx skills add shivam2014\u002Fpi-files --skill agents-md-writer",{"tool":39,"command":40},"pnpm","pnpm dlx skills add shivam2014\u002Fpi-files --skill agents-md-writer","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fshivam2014\u002Fpi-files\u002Fblob\u002Fmain\u002Fagent\u002Fskills\u002Fagents-md-writer\u002FSKILL.md",true,[],[45,52,58,65,71,78],{"skillNo":46,"name":47,"nameZh":6,"description":48,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":49,"categories":50,"keywords":51,"publishedAt":19},"01M75M7EP7577YQ3C6FZMPAG7V","writing-x-posts","Create engaging X (Twitter) posts and threads that drive engagement and grow audience. Use this skill when asked to write X\u002FTwitter content, create threads, craft viral tweets, or help with X engagement strategy. Triggers include requests for tweets, X posts, Twitter threads, or social media content for X.","https:\u002F\u002Fgithub.com\u002Fshivam2014\u002Fpi-files\u002Fblob\u002Fmain\u002Fskills\u002Fwriting-x-posts\u002FSKILL.md",[],[],{"skillNo":53,"name":54,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":55,"categories":56,"keywords":57,"publishedAt":19},"01M75M7DG6KHGYAQX206VCSFDK","loop-until","https:\u002F\u002Fgithub.com\u002Fshivam2014\u002Fpi-files\u002Fblob\u002Fmain\u002Fskills\u002Floop-until\u002FSKILL.md",[],[],{"skillNo":59,"name":60,"nameZh":6,"description":61,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":62,"categories":63,"keywords":64,"publishedAt":19},"01M75M78V1GAC7X3GQRC8A98KM","i-have-adhd","Shape output for a reader with ADHD: lead with the next action, number multi-step work, restate state across turns, suppress tangents, give specific time estimates, make wins visible. Invoke with \u002Fi-have-adhd; stays on until \"stop adhd mode\".","https:\u002F\u002Fgithub.com\u002Fshivam2014\u002Fpi-files\u002Fblob\u002Fmain\u002Fskills\u002Fi-have-adhd\u002FSKILL.md",[],[],{"skillNo":66,"name":67,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":19},"01M75M779RJJN5FV11H106J1TW","local-latex","https:\u002F\u002Fgithub.com\u002Fshivam2014\u002Fpi-files\u002Fblob\u002Fmain\u002Fextensions\u002Flocal-latex\u002FSKILL.md",[],[],{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":19},"01M75M72149P5F9BJ0G6VKTZ7E","why","Use for 'why does X work this way', 'why we picked Y', design rationale, regressions, postmortems, or data-backed thresholds. Discovers available MCPs and queries each evidence category (source control, issue tracker, long-form docs, real-time chat, infrastructure observability, error tracking, product analytics warehouse) in parallel, then returns a cited read on decisions and tradeoffs. Use how for runtime behavior.","https:\u002F\u002Fgithub.com\u002Fshivam2014\u002Fpi-files\u002Fblob\u002Fmain\u002Fagent\u002Fskills\u002Fwhy\u002FSKILL.md",[],[],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":19},"01M75M6ZFWFEFJPPW2HHKEMXH9","unslop","Cut AI tells from any writing.","https:\u002F\u002Fgithub.com\u002Fshivam2014\u002Fpi-files\u002Fblob\u002Fmain\u002Fagent\u002Fskills\u002Funslop\u002FSKILL.md",[],[]]