implement

implement is a command for Claude Code from litestar-org/litestar-fullstack-inertia. It costs 7 tokens per session (1,671 once invoked), scanned A, original, MIT.

An implementation command that builds a feature from its PRD, task list, research, and identified project patterns.

In plain words
What is it for?
Use it to load feature context, study similar backend and frontend code, document the patterns found, and implement the planned work.
Why use it?
It keeps implementation tied to documented requirements and existing examples instead of relying on ad hoc decisions.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/litestar-org/litestar-fullstack-inertia/implement
Clone the repo
git clone --depth 1 https://github.com/litestar-org/litestar-fullstack-inertia

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for implement

README.md
[![agentmods](https://agentmods.dev/badge/commands/litestar-org/litestar-fullstack-inertia/implement.svg)](https://agentmods.dev/commands/litestar-org/litestar-fullstack-inertia/implement)
Your own site
<a href="https://agentmods.dev/commands/litestar-org/litestar-fullstack-inertia/implement"><img src="https://agentmods.dev/badge/commands/litestar-org/litestar-fullstack-inertia/implement.svg" alt="Measured on agentmods" height="20"></a>
Per session 7 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,671 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00007 $0.01671
Opus 5 $0.00003 $0.00835
Sonnet 5 $0.00001 $0.00334
Haiku 4.5 $0.00001 $0.00167

Measured 2d ago against content hash 768ec5ec00cf, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

implement scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/commands/implement.md · 342 lines

How it starts

The opening of the file, as written. The whole thing — 342 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Pattern-Guided Implementation Workflow

You are implementing the feature: $ARGUMENTS

Intelligence Layer (ACTIVATE FIRST)

  1. Load PRD context: specs/active/{slug}/prd.md
  2. Load patterns: specs/active/{slug}/patterns/ and specs/guides/patterns/
  3. Load task list: specs/active/{slug}/tasks.md
  4. Check MCP strategy: .claude/mcp-strategy.md

Checkpoint 0: Context Loading

Required reads:

cat specs/active/{slug}/prd.md
cat specs/active/{slug}/tasks.md
cat specs/active/{slug}/research/analysis.md

Verify PRD exists and is complete.

Output: "✓ Checkpoint 0 complete - PRD loaded, [N] tasks identified"


Checkpoint 1: Pattern Deep Dive

Read 3-5 similar implementations identified in PRD:

For Litestar backend:

  • Read existing controller in same domain
  • Read existing service in same domain
  • Read related models

For React/Inertia frontend:

  • Read similar page component
  • Read related UI components

Document patterns in specs/active/{slug}/tmp/patterns-found.md:

## Patterns to Follow

### Controller Pattern
- Uses `@Controller` decorator with path
- Injects services via constructor
- Returns `InertiaResponse` for pages

### Service Pattern
- Extends `SQLAlchemyAsyncRepositoryService[Model]`
- Has `repository_type` class attribute
- Custom methods for business logic

### Repository Pattern
- Extends from advanced-alchemy base
- Uses model type parameter

### Frontend Pattern
- Page receives typed props
- Uses shadcn/ui components
- Follows resources/pages/{feature}/ structure

Output: "✓ Checkpoint 1 complete - Patterns documented"


Checkpoint 2: Database Layer (if needed)

Create models in app/db/models/:

Follow existing model patterns:

  • Use __tablename__ with snake_case
  • Include __table_args__ if needed
  • Use proper type hints with SQLAlchemy 2.0 syntax
  • Export in app/db/models/__init__.py

Create migration:

uv run app database make-migrations

Read the full file on GitHub · 342 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 342 lines · 7 tokens per session scan A 768ec5ec00cf

Subscribe to this mod's changes

implement is a command published in the GitHub repository litestar-org/litestar-fullstack-inertia (43 stars, last pushed 5d ago), licensed MIT. It adds 7 tokens to every session and 1,671 once invoked, about $0.0000 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.