원클릭으로
flint-plan
Plan fixes for confirmed violations. Use after flint-review to create independent fix tasks for parallel execution.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Plan fixes for confirmed violations. Use after flint-review to create independent fix tasks for parallel execution.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
| name | flint-plan |
| description | Plan fixes for confirmed violations. Use after flint-review to create independent fix tasks for parallel execution. |
| allowed-tools | Read, Glob, Grep |
| context | fork |
| agent | Plan |
| model | sonnet |
Plan how to fix confirmed violations from flint-review. Output independent fix tasks that can be executed in parallel by lightweight workers.
flint-review has triaged the checklistflint-fix workers# Flint Review: src/
- [x] Use 'is None' not '== None'
- [x] utils.py:33 `if x == None:` [!]
- [x] utils.py:35 `if x != None:` [!]
- [x] api.py:72 `while result == None:` [!] — found by review
- [x] Don't use mutable default arguments
- [x] config.py:23 `def load(opts={})` [!]
- [ ] ~~Avoid bare except~~ — false positive, intentional error boundary
Output a list of independent fix tasks, one per file, that Haiku workers can execute in parallel.
# Flint Fix Tasks
## Task 1: utils.py
**Violations:**
- Line 33: `if x == None:` → `if x is None:`
- Line 35: `if x != None:` → `if x is not None:`
**Instructions:**
Replace `== None` with `is None` and `!= None` with `is not None`. Simple find-replace, no semantic changes.
---
## Task 2: api.py
**Violations:**
- Line 72: `while result == None:` → `while result is None:`
**Instructions:**
Same pattern as Task 1. Single line change.
---
## Task 3: config.py
**Violations:**
- Line 23: `def load(opts={})` → mutable default argument
**Instructions:**
1. Change signature to `def load(opts=None):`
2. Add at function start: `if opts is None: opts = {}`
This is a multi-line fix that changes the function body.
---
Total: 3 tasks across 3 files (can run in parallel)
Group all violations for the same file into one task. This:
List violations in reverse line order so fixes don't shift line numbers:
Line 100 first → Line 50 → Line 10 last
Simple (single-line):
== None → is Noneimport os.path → from pathlib import PathMedium (multi-line):
Complex (requires context):
For each task, include:
Mark tasks that need human review:
## Task 4: auth.py [NEEDS REVIEW]
**Violations:**
- Line 42: `eval(user_input)` — security vulnerability
**Instructions:**
This requires security review. Suggested fix depends on use case:
- If parsing JSON: use `json.loads()`
- If parsing Python literals: use `ast.literal_eval()`
- If executing code: remove or sandbox
Each task should be self-contained with:
## Task N: filename.py [optional flags]
**Violations:**
- Line X: `current code` → `fixed code` (if simple)
- Line Y: `current code` — description of issue
**Instructions:**
Clear, actionable instructions a Haiku worker can follow.
Include the fix approach, not just "fix this".
**Fix Hint:** (from rule, if available)
The hint from the rule definition to guide the fix.
After planning, the orchestrator spawns parallel flint-fix workers:
Task: flint-fix on utils.py (Task 1 instructions)
Task: flint-fix on api.py (Task 2 instructions)
Task: flint-fix on config.py (Task 3 instructions)
All run concurrently since they operate on different files.
Scans code for potential violations using fast heuristics (regex, ruff). Use when asked to check code quality, find issues, lint code, or generate a violation checklist.
Execute a fix task from the planner. Use to apply specific fixes to a single file as a parallel worker.
Generate flint rules from CLAUDE.md, AGENTS.md, or other project documentation. Use to bootstrap rules from existing conventions.
Fast triage of flint checklist. Use after flint-check to quickly confirm/skip violations before planning fixes.
Orchestrates checklist-driven linting for code. Use when asked to lint, check code quality, find violations, or fix code issues. Coordinates check, review, plan, and fix phases using optimal models.