paperclip-api
Use when managing Paperclip AI agent companies - creating tasks, managing agents, approving hires, running heartbeats, or any…
Use when creating or refactoring CLAUDE.md files - enforces best practices for size, structure, and content organization
Claude Code
$ npx -y skills add serejaris/personal-corp-os --skill claude-md-writer --agent claude-code
Codex
$ npx skills add serejaris/personal-corp-os --skill claude-md-writer -a codex -y
Cursor
$ npx skills add serejaris/personal-corp-os --skill claude-md-writer -a cursor -y
Gemini CLI
$ npx skills add serejaris/personal-corp-os --skill claude-md-writer -a gemini-cli -y
GitHub Copilot
$ npx skills add serejaris/personal-corp-os --skill claude-md-writer -a github-copilot -y
OpenCode
$ npx skills add serejaris/personal-corp-os --skill claude-md-writer -a opencode -y
Windsurf
$ npx skills add serejaris/personal-corp-os --skill claude-md-writer -a windsurf -y
name: claude-md-writer description: Use when creating or refactoring CLAUDE.md files - enforces best practices for size, structure, and content organization
Creates and refactors CLAUDE.md files following official Anthropic best practices (2025).
| Rule | Why | |------|-----| | **CLAUDE.md < 200 lines** | Loads on EVERY request, costs tokens | | **Rules files < 500 lines each** | Official recommendation per file | | **Critical rules FIRST** | Top = highest priority | | **Modular rules → `.claude/rules/`** | Conditional loading, organized | | **Use `paths:` frontmatter** | Load rules only for matching files | | **No linting rules** | Use ESLint/Prettier/Biome instead | | **Pointers over copies** | Files change, references stay valid |
Claude Code loads memory in this order (higher = higher priority):
| Priority | Type | Location | |----------|------|----------| | Highest | Enterprise | `/Library/Application Support/ClaudeCode/CLAUDE.md` | | ↓ | Project | `./CLAUDE.md` or `./.claude/CLAUDE.md` | | ↓ | Rules | `./.claude/rules/*.md` (conditional) | | ↓ | User | `~/.claude/CLAUDE.md` | | Lowest | Local | `./CLAUDE.local.md` (gitignored) |
Use `/memory` command to see currently loaded files.
Official recommendation for large projects:
| Tier | Location | Loads | Target | |------|----------|-------|--------| | **1. Foundation** | `CLAUDE.md` | Always | < 200 lines | | **2. Component** | `.claude/rules/{component}/` | When working in component | < 500 lines | | **3. Feature** | Co-located with code | When working on feature | As needed |
Example structure:
.claude/
├── CLAUDE.md # Tier 1: always loaded
└── rules/
├── database.md # Tier 2: SQL, migrations
├── api.md # Tier 2: API patterns
└── frontend/ # Tier 2: subdirectory
├── components.md # paths: src/**/*.tsx
├── layout.md # paths: src/pages/**/*.tsx
└── tokens.md # paths: **/*.tsx# Project Name One-line description. ## Commands - `npm run dev` - Development - `npm run build` - Production - `npm run test` - Tests ## Architecture | Path | Purpose | |------|---------| | `lib/` | Core logic | | `app/api/` | API routes | ## Key Patterns **Pattern Name**: One-line explanation. ## Database (if applicable) | Table | Key Fields | |-------|------------| ## Modular Docs See `.claude/rules/` for: - `database.md` - queries, schema - `deploy.md` - deployment ## Tech Stack One line: Next.js 15, PostgreSQL, TypeScript
Use YAML frontmatter for file-type-specific rules:
--- paths: "src/api/**/*.ts" --- # API Rules - All endpoints must validate input - Use standard error format
| Pattern | Matches | |---------|---------| | `**/*.ts` | All .ts files anywhere | | `src/**/*` | All files under src/ | | `*.md` | Markdown in project root | | `src/components/*.tsx` | Components in specific dir |
# Multiple extensions
paths: "src/**/*.{ts,tsx}"
# Multiple directories
paths: "{src,lib}/**/*.ts, tests/**/*.test.ts"**Note:** Wrap patterns in quotes for YAML safety.
Rules with `paths:` only load when working with matching files → saves tokens.
1. Run `/init` for base CLAUDE.md 2. Review and trim generated content 3. Identify critical rules — what breaks if ignored? 4. Create `.claude/rules/` for domain-specific docs 5. Keep main file < 100 lines
1. **Count lines** — if > 300, must split 2. **Find task-specific content** — SQL, debugging, deploy → extract 3. **Create `.claude/rules/`**:
4. **Use `@file` references** — don't duplicate 5. **Keep in CLAUDE.md** — only what applies to EVERY task
| Content | Location | |---------|----------| | Project description | CLAUDE.md | | Critical constraints | CLAUDE.md (top!) | | Quick start (3 commands) | CLAUDE.md | | Architecture overview | CLAUDE.md | | Key patterns (1-liners) | CLAUDE.md | | SQL queries/schema | `.claude/rules/database.md` | | Deployment steps | `.claude/rules/deploy.md` | | API documentation | `.claude/rules/api.md` | | Git workflow | `.claude/rules/git.md` | | Personal preferences | `CLAUDE.local.md` (gitignored) | | Code style rules | `.eslintrc` / `biome.json` (NOT docs) |
Reference files instead of duplicating:
@README.md @docs/architecture.md @~/.claude/snippets/common.md
Personal project settings (auto-gitignored):
# My Local Settings - Prefer verbose output - Run tests after every change - My worktree location: .trees/
| Mistake | Fix | |---------|-----| | 500+ lines | Split into `.claude/rules/` | | SQL examples inline | → `rules/database.md` | | "Run prettier" rules | Use tool config files | | Full API docs | → `rules/api.md` | | Deployment instructions | → `rules/deploy.md` | | Code in CLAUDE.md | Use `@file:line` references | | Negative rules only | Add alternatives: "Don't X; use Y instead" |
Before finishing:
| Command | Purpose | |---------|---------|
Manager uses your local Manager Config for repositories and boards; the distributed skill contains no personal workspace logs.
Use when managing Paperclip AI agent companies - creating tasks, managing agents, approving hires, running heartbeats, or any…
Experimental. Daily retro from your agents' own logs: reads today's Claude Code and Codex sessions on this machine, groups them…
Orchestrate iterative visual style searches with branch prompts, decision graphs, feedback loops, and final direction selection.
Audits the agent rules in the current folder (AGENTS.md, nested AGENTS.md files) and the skill descriptions the agent sees at…
Робот агента Personal Corp. Агент делает себе голову робота из набора деталей, хранит её в штабе в stack/avatars.json и кладёт в…
Use when choosing between engines or models for an agent pipeline and the answer must come from measurement on your own data, not…
Shape output for a reader with ADHD: lead with the next action, number multi-step work, restate state across turns, suppress…
Set up the owner profile so a personal agent knows who it works for (first-run setup, \"get to know me\"), or distill colleague,…