agentleFS
dddpauldddpaul/claude-skills/CLAUDE.md

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
  1. Very specific:

    If the prompt starts with MODE: autonomous: complete exactly ONE task, then STOP.

    line 5
  2. Distinctive:

    After completing the task, output:

    line 9
  3. Distinctive:

    Gate: verify a backlog task exists and is "In Progress" — create or update status first.

    line 40
  4. Very specific:

    Plan: read task, AC, and relevant code.

    line 41
  5. Very specific:

    Implement: write code, run build/linter/tests, check off AC with backlog task edit <id> --check-ac <n>.

    line 42
  6. Very specific:

    Review: after tests pass, spawn the task-reviewer agent (NOT general-purpose or any other) on git diff master..HEAD.

    line 43
  7. Very specific:

    Merge: commit task file, git checkout master && git merge <branch> && git branch -d <branch>.

    line 45
  8. Very specific:

    Use backlog CLI for all task operations.

    line 47
  9. Very specific:

    Run backlog doc list --plain to check for backlog docs (may not exist).

    line 53
  10. Distinctive:

    Always run build, linter, and tests before committing

    line 59
  11. Distinctive:

    Run tests after significant changes to verify functionality

    line 60
  12. Distinctive:

    Do NOT commit broken code

    line 61
  13. Distinctive:

    Follow existing code patterns

    line 62
  14. Distinctive:

    Commit messages should describe what the code does, not its history or evolution.

    line 66
  15. Very specific:

    Every change needs a backlog task and a task-* branch — the master-branch hook enforces this.

    line 69
  16. Distinctive:

    Update README.md after adding important functionality

    line 72
  17. Distinctive:

    Update nearby CLAUDE.md files with reusable patterns (API conventions, gotchas, dependencies — not task-specific details)

    line 73
  18. Very specific:

    Add implementation notes to completed tasks via --append-notes

    line 74
  19. Very specific:

    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:

    line 84
  20. Very specific:

    Read the task body in full (backlog task view <id> --plain).

    line 86
  21. Distinctive:

    Run the task's "Before starting" checklist literally:

    line 87
  22. Very specific:

    Verify every (exists) file path in the Files section is present on disk in this repo.

    line 88
  23. Distinctive:

    Do NOT start work until the user confirms after a green or clarified-yellow report.

    line 96
  24. Distinctive:

    Use uv exclusively for Python package management in this project.

    line 111
  25. Distinctive:

    All Python dependencies must be installed, synchronized, and locked using uv

    line 115
  26. Distinctive:

    Never use pip, pip-tools, poetry, or conda directly for dependency management

    line 116
  27. Very specific:

    Run a Python script with uv run <script-name>.py

    line 126
  28. Very specific:

    Run Python tools like Pytest with uv run pytest or uv run ruff

    line 127
  29. Very specific:

    Run test with uv run pytest <test-name>.py

    line 129
  30. Very specific:

    Run a Python script with inline metadata (dependencies defined at the top of the file) with: uv run script.py

    line 133
  31. Very specific:

    Use Obsidian wikilinks ([[page]]) for internal cross-references

    line 154
  32. Very specific:

    Use ATX-style headings (#, ##, ###)

    line 162
  33. Distinctive:

    Use fenced code blocks with language identifiers

    line 164
  34. Distinctive:

    Prefer tables over nested lists for structured data

    line 165
  35. Very specific:

    Place images and attachments in an assets/ folder

    line 169

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
CLAUDE.md

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: autonomous runs — 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

  1. Gate: verify a backlog task exists and is "In Progress" — create or update status first.
  2. Plan: read task, AC, and relevant code. Record plan: backlog task edit <id> --append-notes "Plan: ...".
  3. Implement: write code, run build/linter/tests, check off AC with backlog task edit <id> --check-ac <n>.
  4. Review: after tests pass, spawn the task-reviewer agent (NOT general-purpose or any other) on git diff master..HEAD. Do not proceed to step 5 (Done) or step 6 (Merge) without an APPROVED verdict from the task-reviewer agent.
  5. Done: final build+lint+tests must pass. backlog task edit <id> -s "Done" --append-notes "...".
  6. 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.md and *.md files in repo root and subdirectories
  • Run backlog doc list --plain to check for backlog docs (may not exist). If present, read relevant ones with backlog doc view <id>
  • CLAUDE.md / AGENTS.md files 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:

  1. Read the task body in full (backlog task view <id> --plain).
  2. 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.
  3. 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.
  4. 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 the version in the owning plugin's plugin.json per 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 pytest or uv 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.py
    • uv 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 /pptx skill and python-pptx (run with uv 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

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.