/comprint-back:comprint-back [describe what you need]from comprint-back
Holistic FastAPI backend development — root-cause driven, zero quick fixes. Use for any Python API work: new projects, endpoints, auth, database, testing, debugging, refactoring.
Ships in comprint-back. Installing the plugin adds it to Claude Code.
Every action you take under this command follows four rules. No exceptions.
No quick fixes. Every problem is an investigation. Every fix addresses the root cause. If you catch yourself writing a patch to make an error disappear, stop and investigate why the error exists.
No hallucination. You do not rely on your training data for project-specific patterns. You read the reference files provided by this plugin and follow them exactly. If a reference file shows a pattern for your task, you use that pattern — you do not invent your own version.
One step at a time. You follow the phase process below in order. You do not skip phases. You do not combine phases. You do not jump to implementation before analysis and design are complete.
Follow reference patterns exactly. The reference files contain this project's conventions — response formats, error handling, layer architecture, testing patterns. Match them precisely. "Close enough" is not acceptable because it creates inconsistency.
When invoked, classify the user's request before loading any reference files.
| Task Type | Trigger Signals | References to Load |
|---|---|---|
| Vague / Unclear | "fix backend", "not working", "build the api", ambiguous requests | None yet — enter Phase 0: Clarify first |
| New Project | "create project", "setup", "init", "new api", "start from scratch" | architecture.md + database.md + logging.md |
| New Endpoint | "add endpoint", "create route", "new api for...", "add a GET/POST" | api-design.md + exceptions.md + relevant domain file |
| Auth Work | "auth", "login", "jwt", "rbac", "permissions", "token", "password" | security.md + api-design.md |
| Database Work | "model", "migration", "query", "repository", "table", "schema" | database.md + architecture.md |
| Bug Fix / Debug | "fix", "error", "broken", "500", "422", "not returning", "crash" | common-errors.md + relevant domain file |
| Testing | "test", "coverage", "fixture", "pytest", "mock" | testing.md + relevant domain file |
| Background Jobs | "task", "celery", "queue", "scheduled", "worker", "cron" | background-tasks.md |
| Logging | "log", "trace", "monitoring", "debug output", "request tracking" | logging.md |
| Refactor | "refactor", "clean up", "restructure", "reorganize", "simplify" | architecture.md + relevant files |
Scan the user's request for domain keywords and map them to specific reference files:
database.mdsecurity.mdapi-design.mdexceptions.mdlogging.mdbackground-tasks.mdtesting.mdIf multiple domains apply, load up to 3 total reference files maximum, prioritizing the most specific domain to the task at hand.
Use the Read tool to load ONLY the reference files identified in the classification above. Files are located at ${CLAUDE_PLUGIN_ROOT}/references/. Read each file completely. Never read all 9 files at once — load only what the task requires (1-3 files).
Available reference files:
${CLAUDE_PLUGIN_ROOT}/references/architecture.md${CLAUDE_PLUGIN_ROOT}/references/api-design.md${CLAUDE_PLUGIN_ROOT}/references/database.md${CLAUDE_PLUGIN_ROOT}/references/security.md${CLAUDE_PLUGIN_ROOT}/references/exceptions.md${CLAUDE_PLUGIN_ROOT}/references/logging.md${CLAUDE_PLUGIN_ROOT}/references/testing.md${CLAUDE_PLUGIN_ROOT}/references/background-tasks.md${CLAUDE_PLUGIN_ROOT}/references/common-errors.mdEvery task goes through phases in order. No skipping. No combining.
Flow: Phase 1 → Phase 2 → Phase 3 → Phase 4 → Phase 5 → Phase 6 Vague requests: Phase 0 → Phase 1 → Phase 2 → Phase 3 → Phase 4 → Phase 5 → Phase 6
This phase runs ONLY when the request is classified as Vague/Unclear. It runs before the main pipeline. Do not load any reference files yet — you need to understand the problem first.
git log --oneline -10 and git diff.Do not ask the user to clarify if you can determine the need by reading the codebase. Only ask the user directly if the codebase provides insufficient context to determine the task type.
${CLAUDE_PLUGIN_ROOT}/references/.HARD GATE: Do NOT write any code until this phase is complete. Do NOT skip reading the reference files. If a reference file has a pattern for your task, USE IT. Do not invent your own version.
**/*.py, **/requirements*.txt, **/pyproject.toml) and Grep to find specific patterns (existing routes, models, services).If the user rejects the design: Return to Phase 3 with the user's feedback as additional context. Re-analyze the problem with this new information. Propose a revised approach. Repeat until the user approves. Do NOT proceed to Phase 5 without explicit approval.
Follow the reference patterns exactly. Match existing codebase conventions. Create files in the correct layers — endpoints in the router/endpoint layer, business logic in services, data access in repositories. Never put business logic in endpoint functions. Never import HTTP concepts (Request, Response, status codes) in service or repository layers.
When encountering ANY problem during implementation:
- STOP. Do not write a single line of fix code.
- WHY does this problem exist? Trace to origin. Is it a symptom of something deeper?
- IS a fix even the right move? Maybe the approach needs rethinking. Maybe the "problem" is correct behavior and the expectation is wrong.
- What is the HOLISTIC solution? Not "what makes this error go away" but "what makes the system correct."
- Present analysis to the user. Explain what you found, why it exists, what the root solution is.
- Only then implement. With understanding, not with a patch.
THERE ARE NO QUICK FIXES. THERE ARE NO AUTO-FIXES. EVERY PROBLEM IS AN INVESTIGATION. EVERY FIX IS A ROOT-CAUSE FIX. IF YOU CATCH YOURSELF WRITING A PATCH, STOP AND INVESTIGATE.
Run 3-level verification on everything you implemented. Do not skip this phase. Do not declare the task complete until all three levels pass.
success/code/message/data/errors)| If you're thinking... | The truth is... |
|---|---|
| "I know FastAPI well enough, I don't need the reference file" | The reference file has THIS PROJECT'S patterns. Read it. |
| "This is a simple change, skip the analysis" | Simple changes in the wrong pattern cause cascading fixes. Analyze. |
| "I'll add the tests later" | Phase 6 verification will catch you. Write them now. |
| "This pattern is close enough" | Close enough = inconsistent codebase. Match the reference exactly. |
| "Let me just quickly patch this" | Quick patches are explicitly forbidden. Find the root cause. |
| "I can auto-fix this small bug" | No. Investigate why it exists. Then fix holistically. |
What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
npx claudepluginhub vansh-comprint/comprint-skills --plugin comprint-back