Skip to content
Back to skills

Feature

ASecurity

Plan and build a CodeRelay change with the least token spend. Sizes the work first, then for cross-surface changes lands the contract and fans out parallel relay-* subagents per surface. Use when asked to implement a feature, issue, or multi-file fix in this repo.

  • 6 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added November 20, 2026
ai-agentscode-reviewdocumentation

Works with

  • claude code
  • cli
  • mcp

Security analysis

A100/100

Scanned November 20, 2026

npx -y skills add AymanAhsan/CodeRelay --skill feature --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Feature?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Feature
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/aymanahsan-feature/badge)](https://www.skillsdirectory.com/skills/aymanahsan-feature)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: feature
description: Plan and build a CodeRelay change with the least token spend. Sizes the work first, then for cross-surface changes lands the contract and fans out parallel relay-* subagents per surface. Use when asked to implement a feature, issue, or multi-file fix in this repo.
---

# Feature workflow

Follow `AGENTS.md`. This skill only decides how much process the change gets and how the work is split.

## 1. Size it first

| Size | Signal | Do this |
|---|---|---|
| **S** | One file, or a bug with an obvious cause | Implement directly. Run `vp test run <file>`. Stop. No plan, no subagents. |
| **M** | One area, roughly 3 to 8 files, no contract change | Write a plan of 5 lines or fewer, implement in this thread, then run `/code-review medium` once. |
| **L** | Changes `packages/contracts`, touches more than one surface, or has a sender side and a receiver side | Run the full workflow below. |

When in doubt, choose the smaller size. Move up a size only when you find a reason.

## 2. Explore (L only)

Launch one `relay-explorer` per area the change touches, all in one message. Usually that's 1 to 3 agents: contracts+server, client, mobile. Give each one the area and the question. Don't read those files yourself while they run.

## 3. Plan (L only)

From the explorer maps, write the plan in this thread:

- **Contract**: the exact schema change in `packages/contracts`.
- **Server**: the service method signature, and which transports and MCP tools call it.
- **Client and mobile**: the state in `client-runtime`, the entry points (chat, Settings, command palette, keybinding), and the reverse states.
- **Surface checklist**: from AGENTS.md "Hit every surface", one line per entry saying "do" or "n/a" and why. Cover each provider adapter if the change is provider-shaped, and both teammate sides if it's a handoff change, including what each side sees when the other is offline.
- **File ownership**: which agent owns which files. No file may appear twice.

If a product decision is ambiguous, ask the user now, once. Don't start implementing on a guess.

## 4. Land the contract (L only, in this thread)

Write the `packages/contracts` change yourself and run `vp run --filter @t3tools/contracts typecheck`. It is the interface every parallel agent codes against, so it must exist before anyone forks. If shared `client-runtime` types are needed by both web and mobile, land those here too.

## 5. Implement in parallel

Send every implementer in **one message** so they run at the same time:

- `relay-server-impl`: server and hub.
- `relay-client-impl`: client-runtime and web/desktop.
- `relay-mobile-impl`: only when the surface checklist says mobile applies.

Give each agent a fresh brief, never the conversation. A brief contains:

- the contract file path
- that agent's section of the plan
- the files it owns
- the pattern to copy, as `path:line`

In Claude Code, use `isolation: "worktree"` only when two agents might write the same paths. Otherwise ownership is enough. Codex subagents share one checkout, so in Codex the file ownership list is the only guard. Never give two Codex agents overlapping files.

Skip parallelism when one piece needs another's output, or when the whole change is under about 6 files. Coordination costs more than it saves.

## 6. Integrate

- Read each report, not each diff. Open a file only where a report flags a gap.
- Run `vp test run` on every touched test file. Typecheck each touched package with `vp run --filter <pkg> typecheck`.
- Walk the surface checklist and confirm each "do" landed.
- Never run `vp check`, `vp run -r test` or `vp run -r typecheck`. CI owns those.

## 7. Review once

Run `/code-review medium` on the diff in Claude Code, or `/review` against the base branch in Codex. Fix confirmed findings in this thread. Don't stack more reviewers.

## 8. Real-client pass

Do this only if the user asks. The primary agent does it once after integrating, following the `test-t3-app` or `test-t3-mobile` skill.

## Claude Code and Codex

The same four roles exist for both harnesses, and both read one role file per agent:

| Role | Claude Code | Codex |
|---|---|---|
| Explorer | `.claude/agents/relay-explorer.md` (Haiku) | `.codex/agents/relay-explorer.toml` (light model, low effort) |
| Implementers | `.claude/agents/relay-*-impl.md` (Sonnet) | `.codex/agents/relay-*-impl.toml` (parent model, medium effort) |

To change what a role does, edit the `.claude/agents/*.md` body. The Codex TOML files point at it instead of copying it.

Codex does not spawn custom agents on its own. Name them in the request: "spawn relay-server-impl and relay-client-impl in parallel with these briefs". Codex agents inherit the parent's sandbox and approval mode, so the "never" rules in each role file are the only limits on them.

## Token rules

- Model by phase: a light model explores, a mid model implements, and the main model plans, integrates and debugs.
- Every subagent report has a word cap. A report lands straight in this thread's context.
- Don't re-read a file you already read. Use Grep with `head_limit` and line ranges.
- Write docs only when `AGENTS.md` "Documentation" says the change needs them.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.