claude-skills
CLAUDE.md3 starsChanged 5 months agoApache-2.0View on GitHub
If the prompt starts with MODE: autonomous: complete exactly ONE task, then STOP. The Ralph loop spawns a fresh instance for the next task. Task selection: if the prompt names a task, work on that task only. Otherwise, run backlog task list -s "To Do" --plain and pick the lowest-ID task whose dependencies are all "Done". After completing the task, output: Then run backlog task list -s "To Do" --plain: if none remain → reply <promise>COMPLETE</promise>; if tasks remain →…
The file
Show its rules and text
We split this CLAUDE.md into the rules it gives an agent
35 rules. About 0 are common, 16 are distinctive, and 19 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈16
Distinctive · estimate
This author's own choices. Worth a look.
19
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Very specific: line 5
If the prompt starts with MODE: autonomous: complete exactly ONE task, then STOP.
- Distinctive: line 9
After completing the task, output:
- Distinctive: line 40
Gate: verify a backlog task exists and is "In Progress" — create or update status first.
- Very specific: line 41
Plan: read task, AC, and relevant code.
- Very specific: line 42
Implement: write code, run build/linter/tests, check off AC with backlog task edit <id> --check-ac <n>.
- Very specific: line 43
Review: after tests pass, spawn the task-reviewer agent (NOT general-purpose or any other) on git diff master..HEAD.
- Very specific: line 45
Merge: commit task file, git checkout master && git merge <branch> && git branch -d <branch>.
- Very specific: line 47
Use backlog CLI for all task operations.
- Very specific: line 53
Run backlog doc list --plain to check for backlog docs (may not exist).
- Distinctive: line 59
Always run build, linter, and tests before committing
- Distinctive: line 60
Run tests after significant changes to verify functionality
- Distinctive: line 61
Do NOT commit broken code
- Distinctive: line 62
Follow existing code patterns
- Distinctive: line 66
Commit messages should describe what the code does, not its history or evolution.
- Very specific: line 69
Every change needs a backlog task and a task-* branch — the master-branch hook enforces this.
- Distinctive: line 72
Update README.md after adding important functionality
- Distinctive: line 73
Update nearby CLAUDE.md files with reusable patterns (API conventions, gotchas, dependencies — not task-specific details)
- Very specific: line 74
Add implementation notes to completed tasks via --append-notes
- Very specific: line 84
When the user types something like check new task TASK-NNN — do you understand, can you run it?, treat it as a handoff acceptance gate:
- Very specific: line 86
Read the task body in full (backlog task view <id> --plain).
- Distinctive: line 87
Run the task's "Before starting" checklist literally:
- Very specific: line 88
Verify every (exists) file path in the Files section is present on disk in this repo.
- Distinctive: line 96
Do NOT start work until the user confirms after a green or clarified-yellow report.
- Distinctive: line 111
Use uv exclusively for Python package management in this project.
- Distinctive: line 115
All Python dependencies must be installed, synchronized, and locked using uv
- Distinctive: line 116
Never use pip, pip-tools, poetry, or conda directly for dependency management
- Very specific: line 126
Run a Python script with uv run <script-name>.py
- Very specific: line 127
Run Python tools like Pytest with uv run pytest or uv run ruff
- Very specific: line 129
Run test with uv run pytest <test-name>.py
- Very specific: line 133
Run a Python script with inline metadata (dependencies defined at the top of the file) with: uv run script.py
- Very specific: line 154
Use Obsidian wikilinks ([[page]]) for internal cross-references
- Very specific: line 162
Use ATX-style headings (#, ##, ###)
- Distinctive: line 164
Use fenced code blocks with language identifiers
- Distinctive: line 165
Prefer tables over nested lists for structured data
- Very specific: line 169
Place images and attachments in an assets/ folder
≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Agent Instructions
Autonomous Mode
If the prompt starts with MODE: autonomous: complete exactly ONE task, then STOP. The Ralph loop spawns a fresh instance for the next task.
Task selection: if the prompt names a task, work on that task only. Otherwise, run backlog task list -s "To Do" --plain and pick the lowest-ID task whose dependencies are all "Done".
After completing the task, output:
## Task Summary
- **Task:** TASK-<id> — <title>
- **What was implemented:** <description of what was done>
- **Files changed:** <list of files>
- **Key decisions:** <any notable decisions or trade-offs>Then run backlog task list -s "To Do" --plain: if none remain → reply <promise>COMPLETE</promise>; if tasks remain → end your response.
Implementation Mode Gate
In an interactive session, before implementing ANY backlog task — whether named by the user, selected from the backlog, freshly created, or an accepted handoff — and before creating a task-* branch or writing any code, ask the user how to run it via the AskUserQuestion tool:
- Question stem:
How to run TASK-<id>?· Header:Run mode - Option 1 — Ralph (Recommended): launch
/ralph-run tasks=<id> watch=5m devcontainer=true; Ralph branches, implements, reviews, and merges autonomously. Do NOT pre-set task status — Ralph manages it. - Option 2 — Interactive: branch (
git checkout -b task-<id>) and run the Task Lifecycle steps below in this session.
Skip the prompt only when the user's message already names the mode. "ralph it" / "run it with ralph" / "автономно" → Ralph path; "do it interactively" / "implement it here in this session" → Interactive path. A bare "implement TASK-N" / "start it" / "go" / "fix it" / "do it" does NOT name a mode → the prompt MUST fire (defaulting to Ralph).
Carve-outs — never ask:
MODE: autonomousruns — the Ralph loop is already the execution mode; proceed straight into the Task Lifecycle.- Mechanical & edit-deliberation ops — status changes,
--check-ac/--uncheck-ac,--append-notes, label / priority / dependency edits, and task creation / splitting / AC rework are not implementation and never fire the gate.
Defensive default: on AskUserQuestion failure or an unparseable answer, do NOT silently branch or launch — stop and ask in plain text. This universal gate is the single source of truth for run-mode selection; any narrower create-time or handoff-acceptance prompt defers to it, and all agree Ralph is the default / first option.
Task Lifecycle
- Gate: verify a backlog task exists and is "In Progress" — create or update status first.
- Plan: read task, AC, and relevant code. Record plan:
backlog task edit <id> --append-notes "Plan: ...". - Implement: write code, run build/linter/tests, check off AC with
backlog task edit <id> --check-ac <n>. - Review: after tests pass, spawn the
task-revieweragent (NOTgeneral-purposeor any other) ongit diff master..HEAD. Do not proceed to step 5 (Done) or step 6 (Merge) without an APPROVED verdict from the task-reviewer agent. - Done: final build+lint+tests must pass.
backlog task edit <id> -s "Done" --append-notes "...". - Merge: commit task file,
git checkout master && git merge <branch> && git branch -d <branch>.
Use backlog CLI for all task operations; run backlog task edit --help for syntax.
Prefer backlog task edit for: adding/removing acceptance criteria, status changes, dependency edits, label/priority changes, frontmatter changes, append-notes, and AC checkbox flips (--check-ac / --uncheck-ac). Direct Edit tool is acceptable for in-place text changes inside the description body or inside an existing AC's text — any change whose diff stays within an existing line and does not touch frontmatter, section markers (<!-- SECTION:... -->, <!-- AC:... -->), or the count of AC lines.
Project Knowledge Sources
README.mdand*.mdfiles in repo root and subdirectories- Run
backlog doc list --plainto check for backlog docs (may not exist). If present, read relevant ones withbacklog doc view <id> CLAUDE.md/AGENTS.mdfiles for agent-specific conventions
Rules
Code Quality
- Always run build, linter, and tests before committing
- Run tests after significant changes to verify functionality
- Do NOT commit broken code
- Follow existing code patterns
- A task may ONLY be marked "Done" if build, tests, linter, and code review ALL pass.
Commit & PR Brevity
Commit messages should describe what the code does, not its history or evolution.
Scope
Every change needs a backlog task and a task-* branch — the master-branch hook enforces this. One task per iteration, one branch per task. Keep changes focused and minimal.
Knowledge Sharing
- Update README.md after adding important functionality
- Update nearby CLAUDE.md files with reusable patterns (API conventions, gotchas, dependencies — not task-specific details)
- Add implementation notes to completed tasks via
--append-notes
Browser Testing
For UI tasks, verify in browser if tools are available (e.g., MCP). Note in task if manual verification is needed.
Handoff Inbox
Some tasks in this project's backlog are inbound handoffs from another Ralph project (created via /ralph-handoff in the source). They carry a Source: <abs-path>@<sha> line in the description and a "Before starting" validation checklist.
When the user types something like check new task TASK-NNN — do you understand, can you run it?, treat it as a handoff acceptance gate:
- Read the task body in full (
backlog task view <id> --plain). - Run the task's "Before starting" checklist literally:
- Verify every
(exists)file path in the Files section is present on disk in this repo. - Confirm each AC is objectively pass/fail (a grep, test invocation, build command, or visible behavior — not "works correctly").
- Confirm all dependencies listed in the task's frontmatter are status=Done.
- Confirm out-of-scope items will not be accidentally pulled in.
- Verify every
- Report green / yellow / red:
- green — all checks pass, AC is testable, paths exist. You can run it. Reply with a one-paragraph restatement of what you would do, then wait for the user to say "go".
- yellow — one or two ambiguities. List them and ask the user to clarify before starting.
- red — multiple checks fail (paths missing, AC untestable, deps unmet). STOP. Report the failures and ask the user to either fix the task or rescind the handoff.
- Do NOT start work until the user confirms after a green or clarified-yellow report.
This gate applies even if autonomous mode is otherwise active — a Source-carrying task pulled by the autonomous selector must run the checklist first and stop on red.
Project-Specific
- Language: Python (with Markdown for skill documentation)
- Build:
N/A - Lint:
uv run ruff check . - Test:
uv run pytest - Framework: Claude Skills repository (skill definitions + scripts)
- Plugin layout: skills live under
plugins/<domain>/skills/<name>/— not at repo root. The repo is itself a Claude Code plugin marketplace (.claude-plugin/marketplace.json). When adding or modifying a skill, also bump theversionin the owning plugin'splugin.jsonper SemVer: patch for content tweaks, minor for new skills or broadened triggers, major for renames/removals or breaking trigger narrowing.
Conventions
Use uv exclusively for Python package management in this project.
Package Management Commands
- All Python dependencies must be installed, synchronized, and locked using uv
- Never use pip, pip-tools, poetry, or conda directly for dependency management
Use these commands:
- Install dependencies:
uv add <package> - Remove dependencies:
uv remove <package> - Sync dependencies:
uv sync
Running Python Code
- Run a Python script with
uv run <script-name>.py - Run Python tools like Pytest with
uv run pytestoruv run ruff - Launch a Python repl with
uv run python - Run test with
uv run pytest <test-name>.py
Managing Scripts with PEP 723 Inline Metadata
- Run a Python script with inline metadata (dependencies defined at the top of the file) with:
uv run script.py - You can add or remove dependencies manually from the
dependencies =section at the top of the script, or - Or using uv CLI:
uv add package-name --script script.pyuv remove package-name --script script.py
Code Style
- Formatting: Follow PEP 8, use ruff formatter
- Imports: Sort imports with standard library first, then third-party, then local
- Types: Use type hints for all functions and methods
- Naming: snake_case for functions/variables, PascalCase for classes
- Error handling: Use specific exceptions, include context in error messages
- Docstrings: Google-style docstrings for public functions/classes
- Line length: Maximum 88 characters
- Function length: Keep functions focused and under 50 lines
Documentation Workflow
This is a Mixed project — it contains code (skills + Python scripts) and documentation (skill READMEs, presentation outputs). For documentation work:
- Use Obsidian wikilinks (
[[page]]) for internal cross-references - Generate presentations with the
/pptxskill and python-pptx (run withuv run) - Convert presentations to PDF with LibreOffice when needed:
libreoffice --headless --convert-to pdf file.pptx - Convert PPTX to images:
pdftoppm -png file.pdf output-prefix
Markdown Standards
- One H1 heading per file (the document title)
- Use ATX-style headings (
#,##,###) - Wrap lines at 120 characters in source files
- Use fenced code blocks with language identifiers
- Prefer tables over nested lists for structured data
File Organization
- Place images and attachments in an
assets/folder - Name files with lowercase-kebab-case:
architecture-overview.md - Group related documents in subdirectories by topic
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

