tuck: Command for Claude Code

.cursor/commands/new-feature.md

new-feature is a command for Claude Code, Cursor from Pranav-Karra-3301/tuck. It costs 6 tokens per session (465 once invoked), scanned A, original, MIT.

A step-by-step template for adding a new command to a TypeScript command-line application. It covers creating the command, exporting and registering it, and adding tests.

In plain words
What is it for?
Use it when adding a Commander-based CLI command, connecting it to the application, handling project setup errors, and creating a Vitest test file.
Why use it?
It shows where each part of a new command belongs, reducing the chance that the command is implemented but not registered or tested.

Command for Claude CodeCursor

Written for Cursor and Claude Code: installed under .cursor/, but also a Claude Code command (commands/*.md).

This is Pranav-Karra-3301/tuck's own configuration. It tells Claude Code and Cursor how to work on tuck itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything tuck configures →

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is import { prompts, logger } from '../ui/index.js';.

Reuse

Borrowing it

Nothing to install: this file belongs to Pranav-Karra-3301/tuck. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/Pranav-Karra-3301/tuck/main/.cursor/commands/new-feature.md
Clone the repo
git clone --depth 1 https://github.com/Pranav-Karra-3301/tuck

Made for: Claude Code, Cursor.

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/commands/pranav-karra-3301/tuck/new-feature/github.svg)](https://agentmods.dev/commands/pranav-karra-3301/tuck/new-feature)
Your own site
<a href="https://agentmods.dev/commands/pranav-karra-3301/tuck/new-feature"><img src="https://agentmods.dev/badge/commands/pranav-karra-3301/tuck/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 new-feature

Your own site · 80×15
<a href="https://agentmods.dev/commands/pranav-karra-3301/tuck/new-feature"><img src="https://agentmods.dev/badge/commands/pranav-karra-3301/tuck/new-feature.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 6 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 465 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.00006 $0.00465
Opus 5 $0.00003 $0.00233
Sonnet 5 $0.00001 $0.00093
Haiku 4.5 $0.00001 $0.00047

Measured 10d ago against content hash 24d96de54070, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, 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 10d 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.

.cursor/commands/new-feature.md · 101 lines

What it actually says

Add New Command

Steps to add a new CLI command:

1. Create Command File

Create src/commands/mycommand.ts:

import { Command } from 'commander';
import { prompts, logger } from '../ui/index.js';
import { getTuckDir } from '../lib/paths.js';
import { loadManifest } from '../lib/manifest.js';
import { NotInitializedError } from '../errors.js';

export const myCommand = new Command('mycommand')
  .description('What this command does')
  .option('-o, --option <value>', 'Option description')
  .action(async (options) => {
    const tuckDir = getTuckDir();

    try {
      await loadManifest(tuckDir);
    } catch {
      throw new NotInitializedError();
    }

    prompts.intro('tuck mycommand');
    // Implementation
    prompts.outro('Done!');
  });

2. Export from Index

Add to src/commands/index.ts:

export { myCommand } from './mycommand.js';

3. Register Command

Add to src/index.ts:

import { myCommand } from './commands/index.js';

program.addCommand(myCommand);

4. Add Tests

Create tests/commands/mycommand.test.ts:

import { describe, it, expect } from 'vitest';

describe('mycommand', () => {
  it('should do expected behavior', () => {
    // Test implementation
  });
});

5. Verify

pnpm build && node dist/index.js mycommand --help

Add New Library Module

Steps to add a new library module:

1. Create Module

Create src/lib/mymodule.ts

2. Export from Index

Add to src/lib/index.ts:

export * from './mymodule.js';

3. Add Tests

Create tests/lib/mymodule.test.ts

4. Run Tests

pnpm test tests/lib/mymodule.test.ts
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. 10d ago First seen · 101 lines · 6 tokens per session scan A 24d96de54070

Subscribe to this mod's changes

new-feature is a command published in the GitHub repository Pranav-Karra-3301/tuck (15 stars, last pushed 1mo ago), licensed MIT. It adds 6 tokens to every session and 465 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.