Skip to content
Back to skills

Plan

ASecurity

Create project plan using project-planner agent. 4-phase approach: Analyze → Research → Plan Document → Human Gate. NO code writing — only plan file generation. Writing begins only after explicit human approval.

  • 7 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 9, 2026
ai-agentstypescriptgobashgitapidatabasefrontendperformance

Works with

  • api

Security analysis

A100/100

Scanned November 9, 2026

npx -y skills add Harmitx7/tribunal-kit --skill plan --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Plan?

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

Security grade badge for Plan
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/harmitx7-plan/badge)](https://www.skillsdirectory.com/skills/harmitx7-plan)

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: plan
description: 'Create project plan using project-planner agent. 4-phase approach: Analyze → Research → Plan Document → Human Gate. NO code writing — only plan file generation. Writing begins only after explicit human approval.'
tools: Read, Grep, Glob, Bash, Edit, Write
version: 3.0.0
last-updated: 2026-07-30
required-skills:
  - plan-writing
  - architecture
  - domain-modeling
scripts-binding:
  - .agent/scripts/verify_all.js
---

# /plan — Strategic Implementation Planning

$ARGUMENTS

---

## Mandatory Pre-Flight Context Inspection

Before drafting implementation plans or technical blueprints, you MUST inspect:

1. Workspace Context & Dependencies (`package.json`, `tsconfig.json`) → Confirm current stack capabilities and path mappings
2. Existing Architecture & Directory Layout → Review current module boundaries to prevent redundant architectural patterns
3. Zero Code Modification Rule → Restrict outputs in `/plan` mode to research, architectural design, and plan artifact generation; ban code generation before Plan approval

4. Required Skills → Before executing, load and follow procedural rules from:
   - `plan-writing` (.agent/skills/plan-writing/SKILL.md): Implementation plan structure, phases, and approval gates
   - `architecture` (.agent/skills/architecture/SKILL.md): System architecture, module boundaries, and dependency management
   - `domain-modeling` (.agent/skills/domain-modeling/SKILL.md): Ubiquitous language, entity relationships, bounded contexts

---

## When to Use /plan

| Use `/plan` when...                       | Skip plan and go to...                            |
| :---------------------------------------- | :------------------------------------------------ |
| New feature with unclear scope            | Simple, well-defined single file edit → just edit |
| Multi-file change with dependencies       | Generating a snippet → `/generate`                |
| Architecture decisions to make            | Fixing a bug → `/debug`                           |
| Risk needs to be assessed first           | Adding to an existing feature → `/enhance`        |
| Stakeholder requirements → technical spec |                                                   |

---

## The Plan Contract: No Code Before Approval

```
The project-planner agent is the only agent active in /plan mode.
It does NOT write code.
It DOES read existing code to inform the plan.
No other agents activate, no code is generated.
```

---

## Phase 1 — Socratic Gate (5 Questions)

```
1. GOAL: What specific outcome defines success? (not "add a feature" — a measurable outcome)
2. USERS: Who exactly uses this? What do they currently do without this feature?
3. SCOPE: What is explicitly OUT of scope for this version/sprint?
4. RISK: What is the highest-risk assumption this plan rests on?
5. STACK: Is the technology stack decided? Any constraints?
```

If any answer is "I don't know" → **ask before writing the plan document.**

---

## Phase 2 — Research (Read Before Planning)

```bash
# What currently exists?
ls -la src/      # Understand directory structure
cat package.json # Understand actual dependencies
cat tsconfig.json # Understand TypeScript config and path aliases
git log --oneline -5 # Recent work context

# Domain-specific reads:
cat prisma/schema.prisma    # If DB changes planned
cat src/middleware.ts        # If auth changes planned
cat src/lib/auth.ts          # If auth changes planned
```

---

## Phase 3 — Wave Decomposition

Plans execute in topological waves:

```
Wave 1 — Foundation (always first)
├── Database schema changes (must precede all code)
├── Shared types and Zod schemas (must precede callers)
└── Auth/middleware changes (must precede protected routes)

Wave 2 — Core Implementation
├── API routes / Server Actions (depends on Wave 1 schema)
├── Business logic layer
└── Unit tests for Wave 1

Wave 3 — Integration
├── Frontend components (depends on Wave 2 API)
├── Integration tests
└── E2E tests for critical paths

Wave 4 — Polish
├── Performance optimization
├── Accessibility audit
└── Deploy prep
```

---

## Phase 4 — Implementation Plan Document

```markdown
# Implementation Plan: [Feature Name]

## Goal

[Single sentence: what is true when this is complete]

## User Review Required

> [!IMPORTANT]
> [Breaking changes, architectural choices needing approval]

## Research Findings

- [what currently exists that's relevant]
- [constraints discovered]

## Proposed Changes

### Wave 1 — Foundation

#### [MODIFY] prisma/schema.prisma

[What changes and why]

#### [NEW] src/lib/validators/newFeature.ts

[What this creates]

### Wave 2 — Core

#### [NEW] src/app/api/new-feature/route.ts

[What this creates]

## Out of Scope (This Version)

- [explicit exclusion]

## Verification Plan

- [ ] npx tsc --noEmit passes
- [ ] npm test passes
- [ ] [specific behavioral assertion]
```

---

## Human Gate — Mandatory Before Execution

After the plan document is written:

```
━━━ Plan Ready for Review ━━━━━━━━━━━━━━━━━

[summary of what will change across N files in N waves]

Approve?
Y = begin execution (proceed to /generate or /enhance)
N = discard plan
R = revise with feedback
```

**Zero code is written until "Y" is received.**

---

## Anti-Pattern Guard

```
❌ Never write code during /plan mode
❌ Never assume what the user wants — ask if unclear
❌ Never plan without reading the existing codebase first
❌ Never omit the Out of Scope section (it's how scope creep is prevented)
❌ Never skip the Socratic Gate — even for "simple" features
❌ Never write a plan that requires understanding unexplored files
```

---

## After /plan — Next Steps

| Outcome                              | Next Command                             |
| :----------------------------------- | :--------------------------------------- |
| Plan approved, new code needed       | → `/generate` for Tribunal-reviewed code |
| Plan approved, existing code changes | → `/enhance` with impact analysis        |
| Plan approved, full project build    | → `/create` for full scaffolding         |
| Plan needs more brainstorming        | → `/brainstorm` to explore options       |

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.