new-feature

new-feature is a skill for Claude Code from yerdaulet-damir/vibe-coding-rules. It costs 68 tokens per session (1,164 once invoked), scanned A, original, MIT.

A checklist to complete before coding a new backend feature, such as an HTTP endpoint, service method, or external integration.

In plain words
What is it for?
Use it to define an API contract, decide which router, service, database, provider, or credits files a feature needs, and clarify unclear scope.
Why use it?
It makes the request and response behaviour, side effects, and code layers explicit before implementation begins.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is bash scripts/lint-architecture.sh.

Good fit Use it to define an API contract, decide which router, service, database, provider, or credits files a feature needs, and clarify unclear scope.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/yerdaulet-damir/vibe-coding-rules
agentmods
npx agentmods add skills/yerdaulet-damir/vibe-coding-rules/new-feature

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 new-feature

README.md
[![agentmods](https://agentmods.dev/badge/skills/yerdaulet-damir/vibe-coding-rules/new-feature.svg)](https://agentmods.dev/skills/yerdaulet-damir/vibe-coding-rules/new-feature)
Your own site
<a href="https://agentmods.dev/skills/yerdaulet-damir/vibe-coding-rules/new-feature"><img src="https://agentmods.dev/badge/skills/yerdaulet-damir/vibe-coding-rules/new-feature.svg" alt="Measured on agentmods" height="20"></a>
Per session 68 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,164 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.00068 $0.01164
Opus 5 $0.00034 $0.00582
Sonnet 5 $0.00014 $0.00233
Haiku 4.5 $0.00007 $0.00116

Measured 8d ago against content hash b36aede83c63, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

new-feature 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 8d 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/skills/new-feature/SKILL.md · 145 lines

How it starts

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

new-feature

Do not open any file for editing until all 5 steps below are completed.


Step 1 — Define the API contract

Write the contract in plain text before any code. Answer these 4 questions:

Endpoint:   POST /generate/image
Request:    { prompt: str, model_id: str, width: int, height: int }
Response:   { task_id: str, status: "queued" }
Side effect: creates a task, holds credits

If you cannot answer all 4 in 2 sentences, the feature scope is unclear. Stop and clarify with the user.


Step 2 — Identify layers touched

Use this decision matrix to know which files you will create or modify:

What the feature needs Layers touched Files
New HTTP endpoint only Router routers/<domain>.py
Endpoint + business logic Router + Service + services/<domain>/
Logic + database Router + Service + Repo + repositories/protocols.py, repositories/sqlalchemy/<domain>.py
Logic + external API Router + Service + Provider + providers/<name>.py
Logic + credits charge All of the above + Credits + services/credits/user.py (read-only — single writer!)

Write the list: "This feature touches: Router, Service, Repo."

Do not touch more layers than listed. If you discover you need more, stop and re-plan.


Step 3 — Define the test scenario

Write the test scenario before code. Two scenarios minimum:

# Scenario 1: happy path
# Given: user has 10.00 credits, valid prompt
# When:  POST /generate/image with correct payload
# Then:  202 response, task_id returned, credits held

# Scenario 2: edge case
# Given: user has 0.00 credits
# When:  POST /generate/image
# Then:  402 response, no task created, no credits touched

These become your actual pytest tests in tests/unit/ or tests/integration/.


Step 4 — Build bottom-up

Always build in this order. Never start from the router.

1. Repository (if new data access needed)
   └── Add method to CreditsRepoProtocol
   └── Implement in SQLAlchemyCreditsRepo
   └── Implement in FakeCreditsRepo (tests/conftest.py)

2. Service
   └── Accepts repo via Protocol (never imports SQLAlchemy)
   └── Contains all business logic
   └── Raises domain exceptions (ValueError, not HTTPException)

3. Router
   └── Thin: validate schema → call service → return response
   └── Maps domain exceptions to HTTP codes
   └── No logic beyond 10 lines per endpoint handler

4. Schema
   └── Request and response Pydantic models
   └── Goes in schemas/<domain>.py, never inside routers/

Read the full file on GitHub · 145 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. 8d ago First seen · 145 lines · 68 tokens per session scan A b36aede83c63

Subscribe to this mod's changes

new-feature is a skill published in the GitHub repository yerdaulet-damir/vibe-coding-rules (13 stars, last pushed 4mo ago), licensed MIT. It adds 68 tokens to every session and 1,164 once invoked, about $0.0003 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-08-31.