Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsCommunityBlog
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

Back to skills

Plan Execute

ASecurity

Multi-phase plan-then-execute workflow for non-trivial features and refactorings.

3 stars
0 votes
0 copies
0 views
Added 9/20/2026
code-qualitygoexpresstestingrefactoringgitapiperformancedocumentation

Works with

api

Security Analysis

A96/100
mediumInstalls packages at runtime which could introduce malicious dependencies

Scanned 9/20/2026

Install to Claude Code

$npx -y skills add ruskicoder/system-prompts --skill plan-execute --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Plan Execute?

Add the live security badge to your README — it updates automatically with every re-scan.

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

More formats (shields.io, HTML) on the badges page.

Download Zip
Files
SKILL.md
---
name: plan-execute
description: Multi-phase plan-then-execute workflow for non-trivial features and refactorings.
  Enforces strict intent gating between read-only planning mode (GitNexus impact analysis,
  multi-axis solution mapping) and execution mode.
argument-hint: <feature or refactoring goal>
---

<!-- Generated from workflows/plan-execute.md by tools/generate_integrations.py. Edit the source file, not this one. This is an execution WORKFLOW packaged as an Agent Skill so it is discoverable and directly invocable ("/plan-execute") in every compatible tool. -->

# Workflow: Plan-then-Execute

## When to Use
| Criteria | Match |
|----------|-------|
| Intention | complex_feature, refactor, moderate_change |
| Complexity | multi-file, moderate risk, needs up-front analysis |
| Power Mode | Balanced or Deep |
| Clarity | requirements are clear but implementation is non-trivial |

## Required Skills
- codebase-understanding (GitNexus) — for pre-analysis
- file-operations
- code-execution
- code-quality-testing
- communication-tone
- project-scaffolding (if new files needed)
- safety-profiles (default or strict)

## Flow

### Phase 0: Thinking Stage (Pre-Action)
- [ ] Is the user's intent clear? Re-evaluate on EVERY new message *(Factory)*
- [ ] Have I read the relevant code areas? NEVER change what I haven't read
- [ ] Do I understand the existing patterns and conventions?
- [ ] What's the blast radius of my planned changes? (GitNexus impact analysis)
- [ ] Verify: am I in PLAN mode or EXECUTE mode? Never mix the two

### Phase 1: Intent Gate (Factory pattern)
Determine: **Am I in plan mode or execute mode?**

- **Plan mode**: research, gather context, propose approach — NO file changes
- **Execute mode**: implement following the approved plan — NO scope changes

State your mode at the start: "I'm in PLAN mode. Let me research before making changes."

### Phase 2: Research & Context (Plan Mode)

```
1. READ gitnexus://repo/{name}/context → Codebase overview
2. query({search_query: "<relevant concept>"}) → Find related code
3. impact({target: "<planned change area>", direction: "upstream"})
   → Understand blast radius before designing solution
4. Read key source files for implementation details
5. Check existing patterns and conventions in the codebase
```

### Phase 3: Propose Plan (Plan Mode)
- **Multi-Axis Solution Mapping**: Map at least 2 distinct implementation approaches (evaluating trade-off axes: complexity vs performance vs maintainability vs blast radius) before selecting the optimal path.
Present to user:
- **What** needs to change (files, interfaces, data flow)
- **How** it will change (selected optimal approach & trade-off rationale)
- **Risk** assessment (based on GitNexus impact analysis)
- **Order** of changes (dependencies between changes)
- **What won't change** (scope boundaries)

### Phase 4: Execute (Execute Mode)
- After user approves the plan
- Follow the planned order precisely
- Implement one logical unit at a time
- After each unit: verify it works before moving on

### Phase 5: Real Test Verification & Shipping Sync
- Run tests for affected execution flows
- **Real Test Contract**: Wait on real completion signals, not fixed sleeps. Test against non-cached truth endpoints or vary cache keys. Isolate tests from persisted service state.
- **Shipping Verification**: Run full test verification suite (`pnpm test` / `npm run verify`) prior to committing.
- **Documentation Synchronization**: If code changes alter API contracts, configuration, or developer workflows, update corresponding documentation files in the same change set.
- `detect_changes()` to confirm scope matches plan
- Linter on new/changed files

### Phase 5b: Sanity Check
- [ ] Does the implementation match the approved plan? Any deviations?
- [ ] Have all planned files been created/modified? No orphaned code? *(Kiro)*
- [ ] `detect_changes()` — is scope limited to what was planned?
- [ ] Does the existing functionality still work? (regression check)
- [ ] Are there linter errors or test failures?

### Phase 6: Report
- What was implemented (matching the plan)
- Any deviations from the plan (and why)
- Verification results

## Token Budget
- **Typical**: 15K-60K tokens
- **Max recommended**: 100K tokens
- **Warning threshold**: >100K → switch to Spec-Driven or session summarization

## GitNexus Integration — Heavy in Plan Phase
- `query` — understanding related code
- `impact` — pre-implementation blast radius
- `context` — interface understanding
- `detect_changes` — post-implementation verification

## Hallucination Watchpoints
- Switching to execute mode without user approval
- Adding scope/features not in the approved plan
- Skipping research phase for "obvious" changes
- Not checking blast radius before implementation
- Inconsistent: plan says one thing, code does another

## Example
```
User: "Add rate limiting to the API"

PLAN MODE:
1. query({search_query: "api middleware request handling"})
   → Found: apiMiddleware, requestHandler, authMiddleware
2. impact({target: "apiMiddleware", direction: "upstream"})
   → d=1: router definitions, request handler
3. Plan:
   - New file: src/middleware/rateLimiter.ts
   - Integration: add to apiMiddleware chain
   - Uses express-rate-limit package
   - Risk: LOW (middleware pattern already exists)

USER: "Looks good, proceed"

EXECUTE MODE:
1. pnpm install express-rate-limit
2. Create src/middleware/rateLimiter.ts
3. Wire into apiMiddleware
4. verify → linter clean, tests pass
```

Attribution

ruskicoderruskicoder
View sourceMore from ruskicoder →
SSkills DirectorySkills Directory

Your tool, in front of Claude Code builders.

3 founder slots · $299/mo · GSC-verified traffic · sponsors can never buy grades.

See placements

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

Comments (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Your tool, in front of Claude Code builders.

3 founder slots · $299/mo · GSC-verified traffic · sponsors can never buy grades.

See placements

Related Skills

Caveman Review

Ultra-compressed code review comments. Cuts noise from PR feedback while preserving the actionable signal. Each comment is one line: location, problem, fix. Use when user says "review this PR", "code review", "review the diff", "/review", or invokes /caveman-review. Auto-triggers when reviewing pull requests.

1023331 votes

Caveman Commit

Ultra-compressed commit message generator. Cuts noise from commit messages while preserving intent and reasoning. Conventional Commits format. Subject ≤50 chars, body only when "why" isn't obvious. Use when user says "write a commit", "commit message", "generate commit", "/commit", or invokes /caveman-commit. Auto-triggers when staging changes.

1023331 votes

Verification Loop

一个全面的 Claude Code 会话验证系统。

2456590 votes

Springboot Verification

Verification loop for Spring Boot projects: build, static analysis, tests with coverage, security scans, and diff review before release or PR.

2456590 votes

Django Verification

Verification loop for Django projects: migrations, linting, tests with coverage, security scans, and deployment readiness checks before release or PR.

2456590 votes
View all in code-quality →