About prime-backend
prime-backend is an agent skill for mapping a backend codebase, aimed at developers working in complex full-stack repositories. It focuses analysis on routes, services, and the data layer, and can load Jira or Confluence context first.
Key features
- 01Load optional Jira and Confluence context
- 02Locate backend root and key files
- 03Map routes, services, and data layers
- 04Check recent changes and workspace state
- 05Produce a structured backend overview
Use cases
- 01Understand a codebase before backend development
- 02Analyze work based on Jira or Confluence tasks
- 03Check migrations, API changes, and pending work
MCP support
It can call Atlassian MCP tools to retrieve Jira issues and Confluence pages as context for backend analysis.
Install
Copy the command and run it in a terminal.
npx skills add https:/ / github.com/ coleam00/ skills --skill prime-backendAfter installing, type/prime-backendin Claude Code to confirm it loaded.
Details
From the project READMEPrime Backend: Load Backend Context
Objective
Build targeted understanding of the backend codebase by analyzing its structure, routes, services, and data layer. Loading only backend context keeps the context window light on complex full-stack codebases. If external task references are provided, load them first so the analysis is anchored to the actual work.
Process
Step 0: Load External Context
Run this step BEFORE the codebase analysis. It accepts optional arguments: [jira-issue-keys] [confluence-page-ids].
- Jira keys may be a single key (
ACC-2) or comma-separated (ACC-2,ACC-3). - Confluence page ids are numeric page ids.
If Jira issue keys are provided:
- Call
mcp__atlassian__getAccessibleAtlassianResourcesto obtain thecloudId. - For each Jira key, call
mcp__atlassian__getJiraIssuewith thatcloudId, the issue key, andresponseContentFormat: "markdown". - Treat the returned issue summary, description, and acceptance criteria as the task context for everything that follows.
If Confluence page ids are provided:
- Call
mcp__atlassian__getConfluencePagefor each page id withcontentFormat: "markdown"(use thecloudIdfrom above, fetching it viamcp__atlassian__getAccessibleAtlassianResourcesif it was not already retrieved). - Treat the returned page content as supporting context (specs, design docs, requirements).
If no arguments are provided: Skip this step entirely and proceed to Step 1.
Briefly summarize any external context loaded before continuing — this frames the rest of the priming.
1. Locate the Backend
List all tracked files to find the backend root:
!git ls-files
Common backend roots: backend/, server/, api/, app/ (FastAPI/Django), src/ (when project is backend-only). Identify the correct root before proceeding.
2. Read Backend Documentation
- Read CLAUDE.md or similar global rules file (for project-wide conventions)
- Read any README inside the backend root
- Read
.claude/references/backend-api-best-practices.mdif it exists — it contains project-specific API conventions
3. Identify Key Backend Files
Based on the structure, read:
- Main entry point (
main.py,app.py,server.ts,index.ts, etc.) - Route registration / router index (
routes/,api/,routers/) - Core configuration (
pyproject.toml,package.json,tsconfig.json) - Database configuration and ORM setup (
database.py,db.ts,alembic.ini) - Core data models or schemas (
models/,schemas/) - One or two representative feature slices (route + service + model) to internalize established patterns
- Middleware and dependency injection setup
Skip files outside the backend root unless they define a shared type or contract the backend exposes.
4. Understand Current Backend State
Check recent backend-relevant activity:
!git log -10 --oneline
!git status
Note any open migrations, pending schema changes, or in-progress API changes.
Output Report
Provide a concise summary covering:
External Task Context (if loaded)
- Jira issue(s): key, title, one-line goal, acceptance criteria
- Confluence page(s): title and what they specify
Backend Overview
- Framework and major libraries (FastAPI, Django, Express, NestJS, etc.)
- Language and runtime version
- Database and ORM (PostgreSQL + SQLAlchemy, MongoDB + Mongoose, etc.)
Directory Map
- Backend root and key sub-directories with one-line purpose each
Architecture Patterns
- How routes, services, and data access are layered
- Dependency injection or middleware patterns observed
- Error handling approach
Conventions
- Naming conventions, module organization
- Migration tooling and current migration state
- Testing framework and conventions observed
Current State
- Active branch, recent backend changes
- Any pending migrations or schema changes
- Any immediate concerns (missing validation, unhandled errors, etc.)
Make this summary easy to scan - use bullet points and clear headers.