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…
In this repository22 other files it gives its agents.
- accessibilitySkill
- adrSkill
- api-designSkill
- architecture-designSkill
- architecture-reviewSkill
- best-practicesSkill
- changelog-generatorSkill
- code-reviewSkill
- database-designSkill
- dependency-auditSkill
- doc-refreshSkill
- example-skillSkill
- full-security-reviewSkill
- git-workflowSkill
- golden-rulesSkill
- incident-reportSkill
- log-correlationSkill
- mvp-readinessSkill
- onboardingSkill
- pre-commitSkill
- requirements-generatorSkill
- test-writerSkill
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
- Distinctive: line 5
When working in this repo, your job is to help build, validate, and publish skills.
- Very specific: line 12
After creating or editing a skill, run ./scripts/validate.sh skills/<skill-name>.
- Very specific: line 13
After adding a skill directory, update skills/registry.json and run ./scripts/check-registry.sh.
- Very specific: line 14
Use ./scripts/new-skill.sh <name> to scaffold a new skill.
- Very specific: line 16
Do not modify skills/example-skill/ — it is the canonical reference for contributors.
- Distinctive: line 20
Always run these checks before committing.
- Distinctive: line 35
Do not store secrets, passwords, keys, PII, or other sensitive data insecurely.
- Very specific: line 41
Always assume the application could be the target of exploitation.
- Distinctive: line 43
All inputs must be sanitized, length-checked, typed (where the language supports it), and exercised by unit tests.
- Distinctive: line 47
Test: every input handler and parser must have unit tests covering valid input, invalid input, boundary/oversized input, and the exception …
- Distinctive: line 69
No hardcoded API keys, credentials, or secrets — use configuration or secrets management.
- Distinctive: line 70
No placeholder or stub code in production paths — write complete, functional code.
- Distinctive: line 72
Remove dead code before committing — commented-out code blocks, unused imports, unreachable functions, and orphaned files are not …
- Distinctive: line 84
Never commit or push directly to main.
- Distinctive: line 86
If you find yourself on main with uncommitted changes, stash or move them to a new branch before committing.
- Distinctive: line 91
Every module with logic must have corresponding tests.
- Distinctive: line 93
Test behavior, not implementation.
- Distinctive: line 94
Write the test first when fixing a bug — reproduce it as a failing test, then fix.
- Distinctive: line 95
Do not test framework internals, trivial getters/setters, or auto-generated code.
- Distinctive: line 101
Never swallow exceptions silently.
- Distinctive: line 102
Use structured error objects with a machine-readable code, human-readable message, and optional context.
- Distinctive: line 114
Document every public endpoint or contract with request/response schemas.
- Distinctive: line 115
Use consistent naming across all API surfaces: plural resource nouns, standard HTTP verbs, consistent date/enum formats.
- Distinctive: line 119
No N+1 queries. Use eager loading, joins, or batch fetches.
- Distinctive: line 120
All list endpoints must support pagination.
- Distinctive: line 121
Use async/non-blocking I/O for network calls, file I/O, and any operation that can block the event loop or thread pool.
- Very specific: line 124
Do not optimize prematurely, but do not ship known O(n^2) or worse algorithms on unbounded inputs.
- Distinctive: line 132
Never log secrets, passwords, full tokens, or raw PII.
- Very specific: line 137
Every deployable service must expose /healthz (liveness) and /readyz (readiness) endpoints.
- Distinctive: line 153
Every line of code must have a clear purpose.
- Distinctive: line 156
Prefer clarity over cleverness.
- Distinctive: line 160
Treat RAM and CPU cycles as valuable commodities.
- Distinctive: line 161
Prefer async / non-blocking calls over sync calls when there is no added complexity penalty.
- Distinctive: line 177
Never install Python packages into the OS Python install.
- Very specific: line 178
Create a venv at the project root: python3 -m venv .venv
- Very specific: line 180
Add .venv/ to .gitignore — never commit it.
- Very specific: line 202
Run ./scripts/validate.sh skills/<skill-name> after creating or editing a skill.
- Very specific: line 203
Use ./scripts/new-skill.sh <name> to scaffold.
≈ “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
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.mdat the plugin root (with YAML frontmatter),metadata.json,README.md,.claude-plugin/plugin.json. There is NOcommands/directory (legacy layout, removed — seedocs/decisions/0001-migrate-to-skill-md-layout.md). Multi-skill plugins (agent-based-development) useskills/<sub-skill>/SKILL.mdinstead of a rootSKILL.md. metadata.jsonmust validate againstschema/metadata.schema.json.- After creating or editing a skill, run
./scripts/validate.sh skills/<skill-name>. - After adding a skill directory, update
skills/registry.jsonand 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 inregistry.jsonandmarketplace.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.
- Validate skill structure —
./scripts/validate.sh skills/<name>for each changed skill. - Sync registry versions —
skills/registry.jsonversion must matchmetadata.jsonversion for every skill. Update registry.json whenever you bump a skill version. - Bump versions — Any skill whose
SKILL.md, supporting files,metadata.json, orREADME.mdchanged must have its version incremented in all four places:metadata.json,skills/registry.json,.claude-plugin/marketplace.json, andskills/<name>/.claude-plugin/plugin.json. Use semver patch bumps for fixes, minor bumps for new features or layout changes. - Run ShellCheck —
shellcheck scripts/*.sh tests/*.sh. All scripts must pass with no errors. - Run markdownlint —
npx markdownlint-cli2 "skills/**/*.md" "*.md". No bare URLs — wrap emails and URLs in backticks or angle brackets. - Check registration and version sync —
./scripts/check-registry.shto confirm every skill directory is registered, and./scripts/sync-versions.sh --checkto confirm versions agree acrossmetadata.json,registry.json,marketplace.json, andplugin.json.
Golden Rules
GOLDEN RULES (MANDATORY — ALL WORK IN THIS PROJECT MUST FOLLOW THESE)
- 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.
- 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.
- 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.
- 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 unboundedmemcpy. - 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.
- 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:
Language Variables/Functions Files Classes JavaScript/TypeScript camelCase camelCase PascalCase Python snake_case snake_case PascalCase Go camelCase (unexported) / PascalCase (exported) snake_case PascalCase SQL snake_case snake_case N/A CSS classes kebab-case kebab-case N/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
mainif no release branch exists). Name branchesfeature/,fix/,hotfix/, orclaude/as appropriate. - If you find yourself on
mainwith 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>ordescribe/itequivalents. 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.login 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
/healthendpoint that checks each critical dependency (DB, cache, queue, object storage, third-party APIs like Resend/Stripe/auth) and reportsok/degraded/failwith 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, andVaryheaders — 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-maxagefor the CDN and shortermax-agefor browsers. Usestale-while-revalidatefor 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-Statusfor 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(orpyproject.toml). Usepip freeze > requirements.txtafter 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.mdat the plugin root — NOTcommands/<name>.md(legacy) and NOTskill.md. - The YAML frontmatter in
SKILL.mdmust includename(matching the directory) anddescription. Optional fields:model,effort,allowed-tools,argument-hint,disable-model-invocation,paths. - A plugin shipping more than one skill uses
skills/<sub-skill>/SKILL.mdinside the plugin instead of a rootSKILL.md(each frontmatternamematches its<sub-skill>directory). Only agent-based-development does this today. - Reference supporting files from
SKILL.mdwith 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
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.

