app-instructions-fix

Installation
SKILL.md

App Instructions Fix

Target: the path in $ARGUMENTS, or the current project root. --no-eval stops after step 3.

Adapted from @poteto: https://x.com/poteto/status/2128595523787431957

Audit all unstructured agent-facing text in this repo (AGENTS.md, skills, cursor rules, architecture/spec markdown docs) and replace as much of it as possible with executable code, types, lints, and tests. Then prove empirically what text actually earns its context window.

Agent-facing text is what an agent loads or is told to read: root and nested AGENTS.md, CLAUDE.md, GEMINI.md, .cursor/rules, .github/copilot-instructions.md, skills with their references, and every doc those files import (@path) or point to. A claim is one instruction or stated fact in it. Text costs context on every run and can steer an agent wrong; a check costs nothing until it fires. Prose stays only where no check can catch the mistake, and only when the eval shows it helps.

Rules

  • Repo-tracked text only. User-global instructions and installed skill copies are out of scope: report what of them loads, never edit them.
  • Branch and commit. Work in a new worktree; one commit per converted claim and per pruned file, so each is reverted alone. Never push or merge.
  • Guardrails are never pruned by score. A claim that prevents an irreversible, destructive, security or outward-facing action (pushing, deleting, publishing, touching secrets or production) is never exercised by one or two eval tasks. It becomes a hook or check, or goes to For review.
  • A check replaces prose only after it went red on a scratch copy that breaks the rule, and green on the current code.
  • A secret in any text: report file and line, never the value, and flag it for rotation.

1. Inventory

Installs
1
Repository
lancetw/skills
GitHub Stars
6
First Seen
Today