JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 70
  • Score
    100M100P100Q96418F
  • License MIT

16 structured AI coding prompts, installed as Claude Code slash commands.

Package Exports

  • @ccprompt/cli
  • @ccprompt/cli/promptm.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@ccprompt/cli) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

ccprompt

npm version Tests License: MIT Node.js

16 structured AI coding prompts, installed as slash commands in Claude Code. Type /kickoff, /debug-rootcause, /security-audit and get structured, opinionated workflows — completely free.

Quick Start (30 seconds)

npx @ccprompt/cli install-generic .

That's it. Open Claude Code in your project and type /kickoff.

What You Get

Command What it does
/kickoff Start session — read everything, understand context first
/debug-rootcause Find the REAL cause. 5 WHYs technique. Fix cause, not symptom
/feature-build Structured feature implementation with incremental steps
/code-review Pre-commit quality gate with security checklist
/verify-thorough Be 100% sure. Trace every path. Trust nothing
/security-audit Full OWASP Top 10 mapped security review
/refactor Safe restructuring — characterization tests first, small steps
/test-write Write comprehensive tests. Happy path, edge cases, error cases
/performance Profile first, optimize second. Never guess the bottleneck
/deploy-checklist Pre-deployment validation. Every time. No exceptions
/housekeeping Cleanup, organize, consolidate — leave it better
/research-investigate Deep dive, brainstorm, plan with all context
/quick-task Small focused task, no heavyweight protocol
/architect Design before you build. Constraints first, then options, then decide
/think-plan Deep reasoning, plan with checkpoints, self-correct, adapt as you go
/low-context-handover Emergency context save when running low

Every template supports $ARGUMENTS — pass context directly:

/debug-rootcause TypeError in UserService.create()
/feature-build add dark mode toggle
/refactor extract auth logic from UserController

How It Works

Templates are plain markdown files installed to .claude/commands/. Claude Code reads them as slash commands. No API key, no account, no setup beyond the one-liner above.

Want project-specific prompts? ccprompt can also scan your project and individualize each template with your actual file paths, commands, and conventions. This optional feature requires an Anthropic API key.

npm install -g @ccprompt/cli
ccprompt scan .
ccprompt generate myproject    # requires ANTHROPIC_API_KEY
ccprompt install myproject

Individualization Example

Generic template:

## Step 2: Reproduce It
- Find the exact steps to trigger the issue
- Find the minimal reproduction
- Document the reproduction steps

After individualization (React + Remotion + Express project):

## Step 2: Reproduce It
- Find the exact steps to trigger the issue
- Find the minimal reproduction
- Document the reproduction steps

Project-specific reproduction workflow:
  # For video generation issues
  npm run dev                    # Open Remotion Studio
  npx remotion render video/index.ts CompositionName output/test.mp4

  # For web UI issues
  cd web && npm run dev          # Start frontend

  # For API issues
  npm run api:dev                # Start Express server

  # For test failures
  npm test                       # Run Vitest

The generic template is 113 lines. The individualized version is 191 lines — all project-specific commands, file paths, and gotchas.

All Commands

ccprompt install-generic [path]  # Instant setup – free, no API key needed
ccprompt templates               # List all 16 templates
ccprompt scan <path>             # Auto-detect & register project
ccprompt generate <project>     # Individualize (requires API key)
ccprompt install <project>      # Install as slash commands
ccprompt refresh <project>      # Rescan + regenerate + install (one step)
ccprompt install-all             # Install into all projects
ccprompt regenerate-all          # Refresh all after template changes
ccprompt list                    # List registered projects
ccprompt stats                   # Overview dashboard
ccprompt rescan <project>       # Re-scan (preserves manual edits)
ccprompt update <project>       # Update context fields
ccprompt copy <proj> <tmpl>     # Copy prompt to clipboard
ccprompt show <proj> <tmpl>     # View in terminal
ccprompt diff <proj> <tmpl>     # Compare original vs individualized
ccprompt new-template <name>    # Create custom template scaffold
ccprompt remove <project>       # Delete project

Custom Templates

ccprompt new-template my-workflow
# Edit templates/my-workflow.md
ccprompt regenerate-all --template my-workflow
ccprompt install-all

Keeping Prompts Up to Date

When your project evolves (new deps, new files, new conventions):

ccprompt refresh myproject    # rescan + regenerate + install in one step

Or for all projects:

ccprompt regenerate-all -y && ccprompt install-all

Troubleshooting

"command not found: ccprompt"

Global install didn't link properly. Use npx instead:

npx @ccprompt/cli install-generic .

Or reinstall globally:

npm install -g @ccprompt/cli

Slash commands don't appear in Claude Code

Make sure you ran install (or install-generic) in the right project directory. Claude Code reads from .claude/commands/ relative to your project root.

ls .claude/commands/    # should list .md files

Templates look generic after install-generic

That's expected. install-generic copies templates as-is. For project-specific prompts, use scan + generate + install (requires API key).

FAQ

Do I need an API key? No. install-generic works with zero configuration and is completely free. An API key is only needed for the optional individualization feature (generate).

Does this work with Cursor / other AI editors? The slash commands are specific to Claude Code's .claude/commands/ convention. The template markdown files themselves work anywhere — copy and paste them into any AI assistant.

Can I edit templates after installation? Yes. They're plain markdown in .claude/commands/. Edit freely. Running install or install-generic again will overwrite them, so keep custom edits in a separate copy if needed.

Requirements

  • Node.js 18+
  • Claude Code (for using slash commands)
  • Anthropic API key (optional — only for individualization)

License

MIT — see LICENSE.