agentleFS
RealDougEubanksRealDougEubanks/ClaudeMarketplace/CLAUDE.md

ClaudeMarketplace

CLAUDE.md1 starsChanged 3 months agoMITView on GitHub

This is the Claude Code Skills Marketplace repository. It is a collection of reusable prompt skills for Claude Code — each skill is a plugin directory under skills/ containing a SKILL.md instruction file at its root, metadata.json (machine-readable metadata), and README.md (human docs). When working in this repo, your job is to help build, validate, and publish skills. Always follow the contribution conventions below. Always run these checks before committing. CI will fail if any are skipped. GOLDEN RULES (MANDATORY…

The file

Show its rules and text

We split this CLAUDE.md into the rules it gives an agent

38 rules. About 0 are common, 27 are distinctive, and 11 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈27

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 11

    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. Distinctive:

    When working in this repo, your job is to help build, validate, and publish skills.

    line 5
  2. Very specific:

    After creating or editing a skill, run ./scripts/validate.sh skills/<skill-name>.

    line 12
  3. Very specific:

    After adding a skill directory, update skills/registry.json and run ./scripts/check-registry.sh.

    line 13
  4. Very specific:

    Use ./scripts/new-skill.sh <name> to scaffold a new skill.

    line 14
  5. Very specific:

    Do not modify skills/example-skill/ — it is the canonical reference for contributors.

    line 16
  6. Distinctive:

    Always run these checks before committing.

    line 20
  7. Distinctive:

    Do not store secrets, passwords, keys, PII, or other sensitive data insecurely.

    line 35
  8. Very specific:

    Always assume the application could be the target of exploitation.

    line 41
  9. Distinctive:

    All inputs must be sanitized, length-checked, typed (where the language supports it), and exercised by unit tests.

    line 43
  10. Distinctive:

    Test: every input handler and parser must have unit tests covering valid input, invalid input, boundary/oversized input, and the exception …

    line 47
  11. Distinctive:

    No hardcoded API keys, credentials, or secrets — use configuration or secrets management.

    line 69
  12. Distinctive:

    No placeholder or stub code in production paths — write complete, functional code.

    line 70
  13. Distinctive:

    Remove dead code before committing — commented-out code blocks, unused imports, unreachable functions, and orphaned files are not …

    line 72
  14. Distinctive:

    Never commit or push directly to main.

    line 84
  15. Distinctive:

    If you find yourself on main with uncommitted changes, stash or move them to a new branch before committing.

    line 86
  16. Distinctive:

    Every module with logic must have corresponding tests.

    line 91
  17. Distinctive:

    Test behavior, not implementation.

    line 93
  18. Distinctive:

    Write the test first when fixing a bug — reproduce it as a failing test, then fix.

    line 94
  19. Distinctive:

    Do not test framework internals, trivial getters/setters, or auto-generated code.

    line 95
  20. Distinctive:

    Never swallow exceptions silently.

    line 101
  21. Distinctive:

    Use structured error objects with a machine-readable code, human-readable message, and optional context.

    line 102
  22. Distinctive:

    Document every public endpoint or contract with request/response schemas.

    line 114
  23. Distinctive:

    Use consistent naming across all API surfaces: plural resource nouns, standard HTTP verbs, consistent date/enum formats.

    line 115
  24. Distinctive:

    No N+1 queries. Use eager loading, joins, or batch fetches.

    line 119
  25. Distinctive:

    All list endpoints must support pagination.

    line 120
  26. Distinctive:

    Use async/non-blocking I/O for network calls, file I/O, and any operation that can block the event loop or thread pool.

    line 121
  27. Very specific:

    Do not optimize prematurely, but do not ship known O(n^2) or worse algorithms on unbounded inputs.

    line 124
  28. Distinctive:

    Never log secrets, passwords, full tokens, or raw PII.

    line 132
  29. Very specific:

    Every deployable service must expose /healthz (liveness) and /readyz (readiness) endpoints.

    line 137
  30. Distinctive:

    Every line of code must have a clear purpose.

    line 153
  31. Distinctive:

    Prefer clarity over cleverness.

    line 156
  32. Distinctive:

    Treat RAM and CPU cycles as valuable commodities.

    line 160
  33. Distinctive:

    Prefer async / non-blocking calls over sync calls when there is no added complexity penalty.

    line 161
  34. Distinctive:

    Never install Python packages into the OS Python install.

    line 177
  35. Very specific:

    Create a venv at the project root: python3 -m venv .venv

    line 178
  36. Very specific:

    Add .venv/ to .gitignore — never commit it.

    line 180
  37. Very specific:

    Run ./scripts/validate.sh skills/<skill-name> after creating or editing a skill.

    line 202
  38. Very specific:

    Use ./scripts/new-skill.sh <name> to scaffold.

    line 203

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

Claude Code Skills Marketplace — Project Context

This is the Claude Code Skills Marketplace repository. It is a collection of reusable prompt skills for Claude Code — each skill is a plugin directory under skills/ containing a SKILL.md instruction file at its root, metadata.json (machine-readable metadata), and README.md (human docs).

When working in this repo, your job is to help build, validate, and publish skills. Always follow the contribution conventions below.

Contribution Conventions

  • Skill directory names must be kebab-case (e.g. git-workflow, golden-rules).
  • Each skill directory has this structure: SKILL.md at the plugin root (with YAML frontmatter), metadata.json, README.md, .claude-plugin/plugin.json. There is NO commands/ directory (legacy layout, removed — see docs/decisions/0001-migrate-to-skill-md-layout.md). Multi-skill plugins (agent-based-development) use skills/<sub-skill>/SKILL.md instead of a root SKILL.md.
  • metadata.json must validate against schema/metadata.schema.json.
  • After creating or editing a skill, run ./scripts/validate.sh skills/<skill-name>.
  • After adding a skill directory, update skills/registry.json and run ./scripts/check-registry.sh.
  • Use ./scripts/new-skill.sh <name> to scaffold a new skill. It creates the full directory structure (including .claude-plugin/plugin.json) and registers the skill in registry.json and marketplace.json.
  • Skills are distributed via the Claude Code marketplace — there is no manual install script. Direct users to add this repo as a marketplace in ~/.claude/settings.json.
  • Do not modify skills/example-skill/ — it is the canonical reference for contributors.

Pre-Commit Checklist (MANDATORY — run before every commit)

Always run these checks before committing. CI will fail if any are skipped.

  1. Validate skill structure — ./scripts/validate.sh skills/<name> for each changed skill.
  2. Sync registry versions — skills/registry.json version must match metadata.json version for every skill. Update registry.json whenever you bump a skill version.
  3. Bump versions — Any skill whose SKILL.md, supporting files, metadata.json, or README.md changed must have its version incremented in all four places: metadata.json, skills/registry.json, .claude-plugin/marketplace.json, and skills/<name>/.claude-plugin/plugin.json. Use semver patch bumps for fixes, minor bumps for new features or layout changes.
  4. Run ShellCheck — shellcheck scripts/*.sh tests/*.sh. All scripts must pass with no errors.
  5. Run markdownlint — npx markdownlint-cli2 "skills/**/*.md" "*.md". No bare URLs — wrap emails and URLs in backticks or angle brackets.
  6. Check registration and version sync — ./scripts/check-registry.sh to confirm every skill directory is registered, and ./scripts/sync-versions.sh --check to confirm versions agree across metadata.json, registry.json, marketplace.json, and plugin.json.

Golden Rules

GOLDEN RULES (MANDATORY — ALL WORK IN THIS PROJECT MUST FOLLOW THESE)

  1. Security is paramount. Every design, implementation, and review decision must prioritize security. When in doubt, choose the more secure option and document the assumption in docs/assumptions.md.
  2. Do not store secrets, passwords, keys, PII, or other sensitive data insecurely.
    • Passwords: Hash with a strong adaptive function (Argon2, bcrypt, scrypt). Never store plaintext or reversibly encrypted passwords.
    • API keys, tokens, secrets: Use environment variables or a secrets manager. Never commit to the repo or log.
    • PII: Encrypt at rest and in transit. Minimize collection and retention. Follow applicable privacy rules.
    • Other sensitive data: Use encryption or hashing as appropriate. Document non-obvious choices in docs/assumptions.md.
  3. Always assume the application could be the target of exploitation. Design for untrusted input, defense in depth, least privilege, and secure defaults. Document any accepted risks in docs/assumptions.md.
  4. All inputs must be sanitized, length-checked, typed (where the language supports it), and exercised by unit tests. All exceptions must be trapped and handled — never allow an unhandled exception to propagate to the user or crash a process silently.
    • Sanitize: strip, escape, or reject untrusted input before use in queries, templates, file paths, shell commands, or downstream calls.
    • Bound: enforce explicit maximum lengths/sizes on every input. In memory-unsafe languages, check buffer sizes before every copy/read/write — no strcpy, gets, sprintf, or unbounded memcpy.
    • Type: use static types or runtime schema validation (Zod, Pydantic, JSON Schema, or language equivalent) at every boundary.
    • Test: every input handler and parser must have unit tests covering valid input, invalid input, boundary/oversized input, and the exception path.
    • Handle: every thrown or returned error must be caught, logged with context, and converted to a meaningful response or recovery action. No empty catch blocks. No bare except: that hides the failure.
  5. AI-generated copy must be free of AI'isms and other telltale signs of machine-written content. Applies to user-facing text, docs, READMEs, commit messages, and comments produced with AI assistance.
    • Forbidden phrases (non-exhaustive): "delve into", "in today's fast-paced world", "it's important to note", "leverage" (as a verb), "tapestry", "embark on a journey", "game-changer", "revolutionize", "seamlessly", "robust solution", "cutting-edge", "boasts", "testament to".
    • Forbidden patterns: "Not only… but also…", hedging openers ("Certainly!", "Absolutely!"), closing summaries that restate the obvious, emoji bullets in serious copy.
    • Edit AI output before shipping — never paste raw model output into customer-facing surfaces.

CODING & NAMING GUIDELINES (apply unless project explicitly overrides in docs/assumptions.md)

  • camelCase for variables, functions, and filenames (see language-specific table below).
  • Language-specific naming conventions:

    LanguageVariables/FunctionsFilesClasses
    JavaScript/TypeScriptcamelCasecamelCasePascalCase
    Pythonsnake_casesnake_casePascalCase
    GocamelCase (unexported) / PascalCase (exported)snake_casePascalCase
    SQLsnake_casesnake_caseN/A
    CSS classeskebab-casekebab-caseN/A
  • Strict typing and schema validation (e.g. Zod, Pydantic, or language-equivalent) for all inputs and boundaries.
  • No hardcoded API keys, credentials, or secrets — use configuration or secrets management.
  • No placeholder or stub code in production paths — write complete, functional code.
  • Move task notes to docs/ToDo.md or docs/ — do not leave // TODO in the codebase for project tracking.
  • Remove dead code before committing — commented-out code blocks, unused imports, unreachable functions, and orphaned files are not acceptable in production paths.

DESIGN & UX GUIDELINES (apply unless project explicitly overrides)

  • Caching: Prefer designs that support caching where appropriate (HTTP cache headers, CDN, app-level) to improve performance.
  • Light and dark mode: Support both themes with easy switching (toggle, system preference, or both). Persist user preference.
  • Visual design: Prefer minimalist, clean designs. Avoid clutter; use clear hierarchy and whitespace.
  • Responsive design: Layouts must be responsive — usable across mobile, tablet, and desktop. Use fluid layouts and touch-friendly targets.
  • Accessibility: Choose accessible and pleasant color palettes. WCAG AA contrast minimum. Do not rely on color alone for meaning.

GIT HYGIENE (MANDATORY)

  • Never commit or push directly to main. All changes must go through a branch and PR, no exceptions.
  • Branch from the current release branch (or main if no release branch exists). Name branches feature/, fix/, hotfix/, or claude/ as appropriate.
  • If you find yourself on main with uncommitted changes, stash or move them to a new branch before committing.
  • PRs targeting shared or release branches require at least one approval from a reviewer other than the author. For solo-maintainer repositories, self-merge is permitted — but CI must pass and the author must self-review the diff before merging.

TESTING STANDARDS (MANDATORY)

  • Every module with logic must have corresponding tests. No untested business logic in production.
  • Name tests descriptively: test_<unit>_<scenario>_<expected> or describe/it equivalents. A failing test name must explain what broke.
  • Test behavior, not implementation. Mock external dependencies; do not mock the unit under test.
  • Write the test first when fixing a bug — reproduce it as a failing test, then fix.
  • Do not test framework internals, trivial getters/setters, or auto-generated code.
  • Integration tests must cover critical paths: auth flows, payment flows, and data persistence boundaries.
  • Tests must be deterministic — no flaky tests. Remove or fix any test that fails intermittently.

ERROR HANDLING (MANDATORY)

  • Never swallow exceptions silently. Every catch block must log, re-throw, or return a meaningful error.
  • Use structured error objects with a machine-readable code, human-readable message, and optional context. No bare string throws.
  • Log errors with severity level, timestamp, request/correlation ID, and enough context to reproduce. No PII in logs.
  • Distinguish client errors (4xx / validation) from server errors (5xx / unexpected). Return appropriate status codes.
  • Fail fast on invalid state. Validate preconditions at function entry; do not let bad data propagate.
  • Define and use a project-wide error hierarchy or error code enum. No ad-hoc error strings scattered across the codebase.

API & DATA CONTRACTS (MANDATORY)

  • Validate all inputs at system boundaries with schema validation (Zod, Pydantic, JSON Schema, or equivalent). Reject invalid payloads before processing.
  • Sanitize all user-supplied strings before use in queries, templates, or downstream calls. Assume all external input is hostile.
  • Version APIs explicitly (URL path, header, or query param). Never introduce breaking changes to an existing version.
  • Backward compatibility is required for at least one prior version. Deprecate before removing — never drop fields or endpoints without notice.
  • Document every public endpoint or contract with request/response schemas. Undocumented APIs are not shippable.
  • Use consistent naming across all API surfaces: plural resource nouns, standard HTTP verbs, consistent date/enum formats.

PERFORMANCE BASICS (MANDATORY)

  • No N+1 queries. Use eager loading, joins, or batch fetches. Profile queries on realistic data volumes before shipping.
  • All list endpoints must support pagination. No unbounded result sets. Default to reasonable page sizes.
  • Use async/non-blocking I/O for network calls, file I/O, and any operation that can block the event loop or thread pool.
  • Cache expensive computations and frequently-read data. Define TTLs and invalidation strategy — no stale-forever caches.
  • Set timeouts on every external call (HTTP, DB, queue). No indefinite waits. Define retry policy with backoff for transient failures.
  • Do not optimize prematurely, but do not ship known O(n^2) or worse algorithms on unbounded inputs. Document accepted performance trade-offs in docs/assumptions.md.
  • Watch for memory leaks and race conditions. Release listeners, timers, subscriptions, and pools. Guard shared state with locks, atomics, transactions, or message passing.

LOGGING & OBSERVABILITY (MANDATORY)

  • Emit structured logs (JSON or logfmt) with timestamp, level, message, correlation ID, and context. No print / console.log in production paths.
  • Log security-relevant events: failed logins, successful logins from new IPs, password resets, permission changes, MFA challenges, account lockouts, rate-limit trips, suspicious input rejections.
  • Log outbound integration events: email sends (provider, message ID, status), SMS, payments, webhooks, third-party API failures and retries. Include upstream response codes.
  • Never log secrets, passwords, full tokens, or raw PII. Hash, redact, or omit.
  • Emit metrics for request/error rates, p50/p95/p99 latency, queue depth, job success/failure, and the events above. Alerts must have an owner and a runbook.

HEALTH CHECKS & UPTIME MONITORING (MANDATORY)

  • Every deployable service must expose /healthz (liveness) and /readyz (readiness) endpoints.
  • Provide a deeper /health endpoint that checks each critical dependency (DB, cache, queue, object storage, third-party APIs like Resend/Stripe/auth) and reports ok / degraded / fail with last-check timestamp and latency. Verify credential validity where supported so expired keys are caught early.
  • Liveness/readiness require no auth; the detailed health endpoint must not leak secrets or internal hostnames. Return 200 when healthy, 503 when not, so external monitors (NodePing, UptimeRobot, Pingdom) alert correctly.
  • Configure an external uptime monitor against the public URL and the deep health endpoint with on-call alerting. A service without an external monitor is unmonitored.

CACHING & CDN (MANDATORY)

  • Cacheability is a per-route design decision. Set explicit Cache-Control, ETag/Last-Modified, and Vary headers — never rely on framework defaults.
  • Immutable static/versioned assets: Cache-Control: public, max-age=31536000, immutable, served through the CDN.
  • Cacheable HTML/API: deliberate s-maxage for the CDN and shorter max-age for browsers. Use stale-while-revalidate for low-risk content.
  • Non-cacheable responses (authenticated pages, dashboards, anything with PII): Cache-Control: private, no-store. Audit user-specific routes to confirm they are not cached publicly.
  • Provide a cache-purge path (deploy hook, admin action, webhook → CDN purge API). Stale-forever caches are a bug.
  • On CloudFlare: use Cache Rules (not deprecated Page Rules), configure Tiered Cache / Cache Reserve where justified, set Origin Rules to strip cookies on static paths, enable WAF / Bot Fight Mode / rate limiting at the edge, monitor CF-Cache-Status for hit ratio, and follow CloudFlare's framework-specific guidance (Workers, Pages) for SPA/SSR apps.

CODE EFFICIENCY & DEPENDENCY HYGIENE (MANDATORY)

  • Every line of code must have a clear purpose. No speculative abstractions, no dead branches, no unused exports, no "just in case" features.
  • Minimize dependencies. Before adding a new package (npm, pip, cargo, NuGet, gem, go module), justify it: does the value outweigh the size, security surface, and maintenance cost? Prefer the standard library or a small focused implementation.
  • Minimize binary and bundle size. Avoid heavyweight libraries when a small utility will do. Watch for dependency explosions — transitive bloat counts.
  • Prefer clarity over cleverness. Avoid deep inheritance or abstraction layers that obscure what the runtime is actually doing — assume 80% of effort is debugging, so write code that is easy to step through.

RESOURCE STEWARDSHIP (MANDATORY)

  • Treat RAM and CPU cycles as valuable commodities. Don't poll when you can subscribe; don't refresh when nothing changed; don't recompute what you can cache.
  • Prefer async / non-blocking calls over sync calls when there is no added complexity penalty. Never block the UI thread on I/O (disk, network, IPC) — move it to a worker.
  • Be cache- and allocation-aware in hot paths. Respect locality, batch work, and avoid unnecessary allocations or memory fragmentation, especially in native code (C/C++/Rust).
  • Support a degraded or "lean" mode when the application could run on resource-constrained hardware. Failing to start is worse than degraded operation.
  • Truthful telemetry: performance metrics must reflect actual system state. Do not smooth, round, or fabricate numbers for UI aesthetics.
  • Apply language- and platform-specific best practices. The rules above describe intent; idiomatic implementation is contextual to the stack and the goals of the project.

PLATFORM-SPECIFIC GUIDELINES (MANDATORY)

  • Apple platforms (iOS, iPadOS, macOS, watchOS, tvOS, visionOS): Follow the Apple Human Interface Guidelines (HIG) for UX, layout, typography, motion, accessibility, and platform conventions. Prefer native frameworks (SwiftUI, UIKit, AppKit) and idiomatic Swift; respect Apple's review and entitlement rules where relevant.
  • Android: Follow Google's Material Design and the Android Developer guidelines for UX, navigation, and architecture (e.g. Architecture Components, Jetpack). Use Kotlin idioms and follow Google's Kotlin / Java style guides.
  • Linux applications and scripts: Follow Red Hat's documented best practices (Fedora Packaging Guidelines, RHEL system design guidance, systemd conventions) where they apply. Otherwise follow the most widely accepted conventions for the language and ecosystem — POSIX shell guidelines, the Linux Filesystem Hierarchy Standard, freedesktop.org specs, and the relevant distro packaging norms.
  • Windows: Follow Microsoft's official guidance for the target stack — Fluent Design / WinUI for modern UI, Windows App SDK / .NET conventions, and Microsoft Learn documentation for APIs, security, and packaging (MSIX).
  • Cross-platform code: When shared UI or behavior spans platforms, branch to honor each host's conventions rather than picking a lowest common denominator. Document any deliberate deviations from a platform's guidelines in docs/assumptions.md.

PYTHON ENVIRONMENT (MANDATORY)

  • Never install Python packages into the OS Python install. Always use a virtual environment.
  • Create a venv at the project root: python3 -m venv .venv
  • Activate before running or installing: source .venv/bin/activate
  • Add .venv/ to .gitignore — never commit it.
  • Pin all dependencies in requirements.txt (or pyproject.toml). Use pip freeze > requirements.txt after installing.

CLAUDE CODE PLUGIN & SKILL LAYOUT (MANDATORY)

Skills and plugins installed via the Claude Code plugin system must follow this layout so they are discovered automatically as slash commands:

skills/<skill-name>/            ← plugin root
  SKILL.md                      ← skill content with YAML frontmatter (name, description)
  metadata.json
  README.md
  .claude-plugin/
    plugin.json
  templates/ rules/ ...         ← optional supporting files, loaded on demand
  .scan-exempt                  ← optional reviewed scanner exemptions
  • The skill file must be SKILL.md at the plugin root — NOT commands/<name>.md (legacy) and NOT skill.md.
  • The YAML frontmatter in SKILL.md must include name (matching the directory) and description. Optional fields: model, effort, allowed-tools, argument-hint, disable-model-invocation, paths.
  • A plugin shipping more than one skill uses skills/<sub-skill>/SKILL.md inside the plugin instead of a root SKILL.md (each frontmatter name matches its <sub-skill> directory). Only agent-based-development does this today.
  • Reference supporting files from SKILL.md with markdown links so they load on demand; resolve bundled assets via ${CLAUDE_PLUGIN_ROOT} with a cwd fallback for local checkouts.
  • Run ./scripts/validate.sh skills/<skill-name> after creating or editing a skill.
  • Use ./scripts/new-skill.sh <name> to scaffold; it generates the correct structure automatically.

ASSUMPTIONS TRACKING

Any time a non-obvious decision is made, record it in docs/assumptions.md:

  • Assumption: one clear sentence
  • Why: rationale
  • Recorded by: <agent or developer name>
  • Date: YYYY-MM-DD

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.