# New Patch

> >-

- **Type:** Skill
- **Install:** `agentstack add skill-camjac251-cc-enhanced-new-patch`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [camjac251](https://agentstack.voostack.com/s/camjac251)
- **Installs:** 0
- **Category:** [AI & ML](https://agentstack.voostack.com/c/ai-and-ml)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [camjac251](https://github.com/camjac251)
- **Source:** https://github.com/camjac251/cc-enhanced/tree/main/.claude/skills/new-patch

## Install

```sh
agentstack add skill-camjac251-cc-enhanced-new-patch
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# /new-patch 

Create the four files needed for a new patch, then hand off to the user. `$ARGUMENTS` is the patch tag.

If the tag is missing, ask the user for tag, one-line purpose, and group.

## Files to create

1. **`src/patches/.ts`**: copy the structure from a similar existing patch in `src/patches/`. Import `traverse`, `@babel/types`, and helpers from `./ast-helpers.js`. Export a `Patch` with `tag`, `astPasses`, and `verify`; see `src/types.ts` for the interface.
2. **`src/patches/.test.ts`**: use `node:test` plus `node:assert/strict`. At minimum, assert the exported `tag` matches and add a placeholder for verify behavior. Mirror the shape of a sibling `*.test.ts`.
3. **`src/patches/index.ts`**: add the named `export ... from "./.js"`, add the import for the array, and append the patch to `allPatches`.
4. **`src/patch-metadata.ts`**: add a `BY_TAG[""]` record with `tag`, `label`, and `group`.

## After scaffolding

Tell the user the four files are created. Do not implement the visitor or verifier; that is the user's design step.

Remind them to follow `CLAUDE.md > Adding Patches`:

- **Step 5**: if the patch changes exported live prompt guidance, update `src/verification/prompt-surface-rules.ts` and update `src/verification/prompt-policy-contract.ts` for shared policy.
- **Step 6**: when the total patch count changes, keep the patch count in sync across the `README.md` intro and patch-count badge. Confirm the new total against `bun run cli --list` before pushing.
- Prompt guidance changes need a patched export, `mise run verify:prompt-surfaces -- `, human review through `prompts:compare`, and `verify:prompt-drift` against a reviewed baseline before drift is called corrected.

## Implementation handoff

The implementation phase starts from the current clean upstream bundle, not an older cached snapshot:

```bash
mise run native:pull -- latest
```

Use `bun run inspect search versions_clean//cli.js ` for `cli.js` anchor discovery, then prove the patch with a focused test, the target matrix (`SELECTED_VERSION= mise run verify:patches:matrix`), and the native verifier (`mise run verify:patches`) before calling it complete.

## Gotchas

- This command is slash-only and scaffold-only; do not implement the visitor or verifier inside this workflow.
- Do not hide this skill behind `paths:`. The user invokes it by command name before any scaffold files exist.

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [camjac251](https://github.com/camjac251)
- **Source:** [camjac251/cc-enhanced](https://github.com/camjac251/cc-enhanced)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-camjac251-cc-enhanced-new-patch
- Seller: https://agentstack.voostack.com/s/camjac251
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
