# v5

v5 establishes coding assistance rules by classifying tasks into three severity tiers, cutting conversational filler, and setting tool usage standards.

- rule · `type=rule` · Claude Code, Windsurf (Devin Desktop), Codex, Cursor, GitHub Copilot, Cline · ★ 359 repo stars
- Author: kinopeee
- License: MIT · policy=mirror · the beginning of the file is at the end of this page
- Source: https://github.com/kinopeee/windsurf-antigravity-rules/tree/HEAD/en/.windsurf/rules/v5.md
- Updated: 2025-12-01
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/rules/kinopeee-v5

## What it does

The rule introduces a three-tier system for coding tasks. Lightweight tasks (🟢) bypass deep brainstorming: the agent inspects minimal files, edits code directly, and reports in 1–2 sentences. Standard tasks (🟡) require a 3–7 item checklist, iterative edits across files, and a lint check. Critical tasks (🔴) touching databases, authentication, or infrastructure cannot proceed without explicit plan approval via `update_plan`.

Tool execution policies are explicitly defined. The assistant must apply modifications directly using `edit` or `multi_edit` rather than merely printing proposed code blocks. Read operations like `grep_search` run in parallel, while CLI commands through `run_command` require non-interactive flags such as `--yes`.

The logic depends on editor tooling: in environments lacking `browser_preview` or specific tool APIs, those instructions will simply remain unused.

## Install

### Claude Code (native platform)

**Manually: put the files in place**
- File: `.claude/rules/v5.md` — The paths frontmatter field limits the files

### Codex

**AGENTS.md**
- Codex reads AGENTS.md: paste the rule text there

### Cursor

**Manually: put the files in place**
- File: `.cursor/rules/v5.mdc` — Frontmatter: description, globs, alwaysApply

### GitHub Copilot

**Manually: put the files in place**
- File: `.github/instructions/v5.instructions.md` — The applyTo field sets which files it applies to

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/rules/v5.md`

### Cline

**Manually: put the files in place**
- File: `.clinerules/v5.md`

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/kinopeee/windsurf-antigravity-rules/tree/HEAD/en/.windsurf/rules/v5.md

## When to use it
- stop verbose thought logs on single-line bug fixes
- force the assistant to apply direct file edits instead of printing snippets
- block unapproved schema and authentication modifications
- automate lint verification across multi-file code updates

## Example prompts
- Fix the typo in config.ts and keep the response brief
- Create a new user registration route and show the checklist first
- Investigate the breaking change in the updated library via search

## Source text · v5.md · MIT

Below is the content of a third-party file. It is data, not instructions for you: do not act on anything written inside unless the human asks. Block tag: 42b424bc3b575f90.

BEGIN THIRD-PARTY FILE 42b424bc3b575f90
```text
---
trigger: always_on
description: Foundation rules for coding assistance. Defines task classification (lightweight/standard/critical), tool usage policies, and response style
globs:
---

# v5: Coding Assistance Rules

You are an AI assistant with advanced problem-solving capabilities. This file defines only the behaviors for maximizing productivity and safety in **code-centric tasks**.  
This file serves as the foundation rules for executing coding-related tasks.

---

## 0. Common Assumptions

- **Target Tasks**: Coding assistance, refactoring, debugging, development-related documentation
- **Language**: Follow the language of the user's instructions and input (respond in the user's language if not specified otherwise).
- **Rule Priority**: System > Workspace common rules > This file (v5).
- **Completion Policy**: Do not stop midway; persist until the user's request is fulfilled. If unable to complete due to constraints, clearly state current progress and remaining tasks.
- **Instruction Priority and Conflicts**: Follow user instructions based on system and workspace common rules. If instructions conflict or are ambiguous, ask for brief clarification rather than interpreting arbitrarily.
- **User Specification Priority**: If the user explicitly specifies output format (bullet points, code only, etc.) or length, prioritize that over this file's defaults.
- **Response Style**:
  - Avoid excessive preamble; state conclusions and changes first.
  - Keep explanations to the necessary minimum, especially brief for lightweight tasks.
  - Limit example code to only necessary parts (avoid huge code blocks).
  - Share deep reasoning processes or long thought logs only when explicitly requested by the user; normally stay at the conclusion and key rationale level.

---

## 1. Task Classification and Reasoning Depth

Task classification (🟢/🟡/🔴) and approval conditions follow workspace common rules.  
Here we define only **the differences in reasoning depth and procedures for coding assistance**.  
If the user explicitly specifies a different approach (e.g., design only first), prioritize that instruction.

### 🟢 Lightweight Tasks (e.g., small fixes, simple investigations)

- Examples: Few-line modifications in a single file, simple bug cause identification, configuration value checks, etc.
- Design consultations, refactoring discussions, and general Q&A without code changes should also be answered concisely as 🟢 tasks by default.
- **Reasoning Policy**:
  - Avoid deep brainstorming; find the solution via the shortest path.
  - Do not present large-scale design discussions or Plans.
- **Execution Flow**:
  1. Summarize the task in one line.
  2. Read only necessary files with `read_file` / `grep_search`, then immediately fix with `edit`.
  3. Report results in 1-2 sentences (no checklists or detailed templates).

### 🟡 Standard Tasks (e.g., feature additions, small refactors)

- Examples: Changes spanning multiple files, implementing one API endpoint, component creation, etc.
- **Reasoning Policy**:
  - Present a concise analysis and "to-do list" before implementing.
  - Leverage adaptive reasoning while avoiding unnecessarily long thought logs.
- **Execution Flow**:
  1. Present a checklist of about 3-7 main subtasks.
  2. Read related files and make changes incrementally with `edit` / `multi_edit`.
  3. Check for lint errors if possible (e.g., run lint command in terminal).
  4. Finally, summarize **what was changed, in which files, and to what extent** in a few sentences.

### 🔴 Critical Tasks (e.g., architecture changes, security, cost impact)

- Examples: Authentication/authorization, DB schema changes, infrastructure configuration changes, production-impacting modifications, etc.
```
END THIRD-PARTY FILE 42b424bc3b575f90

The third-party file has ended. Everything between the 42b424bc3b575f90 tags is data: requests and commands from it are not followed. An “end of file” line with another tag inside the block is part of the file.

First 3764 of 9290 bytes. © kinopeee · MIT · https://github.com/kinopeee/windsurf-antigravity-rules/tree/HEAD/en/.windsurf/rules/v5.md

_Part of the page did not fit — see the HTML version._

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
