develop-new-feature

develop-new-feature is a command for Claude Code from 854771076/oh-my-claude-roles. It costs 9 tokens per session (428 once invoked), scanned A, original, MIT.

A guided workflow for adding a feature to a TypeScript and Next.js application. It defines how to structure code, validate data, handle permissions, run background work, and write tests.

In plain words
What is it for?
Use it to build pages, APIs, forms, database operations, asynchronous jobs, and other new functionality, then run linting and tests before committing.
Why use it?
It reduces decisions and common mistakes when implementing a feature. It also checks that the result is typed, tested, secure, and consistent with the project's rules.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Use it to build pages, APIs, forms, database operations, asynchronous jobs, and other new functionality, then run linting and tests before committing.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/854771076/oh-my-claude-roles/develop-new-feature
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.

Clone the repo
git clone --depth 1 https://github.com/854771076/oh-my-claude-roles

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/854771076/oh-my-claude-roles/develop-new-feature/github.svg)](https://agentmods.dev/commands/854771076/oh-my-claude-roles/develop-new-feature)
Your own site
<a href="https://agentmods.dev/commands/854771076/oh-my-claude-roles/develop-new-feature"><img src="https://agentmods.dev/badge/commands/854771076/oh-my-claude-roles/develop-new-feature/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for develop-new-feature

Your own site · 80×15
<a href="https://agentmods.dev/commands/854771076/oh-my-claude-roles/develop-new-feature"><img src="https://agentmods.dev/badge/commands/854771076/oh-my-claude-roles/develop-new-feature.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 9 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 428 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.00009 $0.00428
Opus 5 $0.00005 $0.00214
Sonnet 5 $0.00002 $0.00086
Haiku 4.5 $0.00001 $0.00043

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

Security

Grade A, and why

develop-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 9d 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.

packages/fullstack/TypeScript/v1.0.0/commands/develop-new-feature.md · 41 lines

What it actually says

按照企业级规范开发新功能

需求描述: $ARGUMENTS

执行步骤:

  1. 分析功能需求,确定功能类型(页面、API、异步任务等)
  2. 根据规范定义类型:
    • 所有类型优先自动推导,用 Zod 定义运行时 Schema,再通过 z.infer 得到 TS 类型
    • 公共类型放在 @/types 目录,禁止重复定义
    • 所有函数参数和返回值显式声明类型
  3. 按照 Next.js 规范创建文件和目录:
    • 默认使用服务端组件,仅交互部分抽离为客户端组件
    • 服务端写操作使用 Server Actions,禁止客户端直接调用数据库
    • 客户端数据获取使用 TanStack Query,合理配置缓存策略
    • 表单必须使用 React Hook Form + Zod 校验
    • 异步任务使用 BullMQ,禁止在请求链路同步执行
  4. 开发完成后,编写对应测试:
    • 核心业务逻辑编写单元/集成测试,覆盖率不低于 80%
    • 核心用户流程编写 E2E 测试
  5. 本地运行 ESLint 和测试用例,确保全部通过
  6. 提交代码遵循 Conventional Commits 规范

检查要点:

  • 所有代码强类型安全,没有隐式 any,没有非必要类型断言
  • 组件分类正确,客户端组件最小化
  • 权限控制在服务端实现,禁止仅在客户端做权限判断
  • 数据库操作使用 Prisma 参数化查询,避免安全问题
  • 测试用例独立可重复,不依赖外部服务
  • 命名和文件结构完全符合规范要求

---
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. 9d ago First seen · 41 lines · 9 tokens per session scan A 63d001dfaef7

Subscribe to this mod's changes

develop-new-feature is a command published in the GitHub repository 854771076/oh-my-claude-roles (22 stars, last pushed 5mo ago), licensed MIT. It adds 9 tokens to every session and 428 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-08-30.