preetamnath/agent-skills

tighten-file

File-level tightening pass on an instruction file (CLAUDE.md, skill, agent prompt, style guide) using `tighten-instruction` as the lens.

First seen May 18, 2026

Installation

$ npx skills add preetamnath/agent-skills --skill tighten-file

Summary

  • File-level tightening pass on an instruction file (CLAUDE.md, skill, agent prompt, style guide) using `tighten-instruction` as the lens.
  • TRIGGER when: user says 'tighten/simplify this file/skill/CLAUDE.md', 'cut this down', 'titan instruction on this file'; user points at a verbose instruction file and wants it leaner.

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from preetamnath/agent-skills · top by installs.

npx skills add preetamnath/agent-skills

Browse all from preetamnath/agent-skills

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

Stars 4
License LICENSE.md
Default branch main
Open issues 0
Status Active

Skill metadata

Parsed from SKILL.md frontmatter.

Declared agents claude-code

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 2,152 B
  • docs SUMMARY.md 340 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 17 installs

SKILL.md

Tighten File

Apply tighten-instruction at three levels: whole file, section, instruction.

Steps

Step 0 — Load

Invoke the tighten-instruction skill via the Skill tool. This file-level workflow owns the apply gate.

Step 1 — Pin meaning

State the file's purpose in one line. List every distinct instruction or fact that must survive, including exact tokens, anchors, output contracts, and load-bearing rationale.

Step 2 — Find and score edits

Apply the loaded lens at whole-file, section, and instruction level. For each independent edit, record:

  • the current text;
  • the proposed text, or cut entirely;
  • the level: whole-file, section, or instruction;
  • confidence 0.00–1.00 that the edit improves clarity without changing meaning.

Keep load-bearing rationale. When a reason is the non-derivable fact, shape it as behaviour — constraint; do not cut it as explanation.

Step 3 — Gate and apply

Show the plan, then:

  • apply every edit at c ≥ 0.75;
  • hold lower-confidence proposals and leave their text unchanged;
  • apply whole-file and section edits before instruction edits;
  • drop any later proposal an applied edit dissolves.
**Tightening plan — <file>:**
- [0.92] section: <current> → <proposed>
- [0.61] instruction: <current> → <proposed> · held (< 0.75)

Write Nothing to tighten — already clear. when no edit qualifies.

Step 4 — Prove and report

Re-read the changed file cold. Confirm:

  • every Step 1 invariant survived;
  • every exact token and anchor remains valid;
  • every cross-reference still resolves;
  • no rationale lost its constraint.

Revert or fix any edit that fails this proof.

Report applied edits, held proposals, dissolved proposals, and net clauses, lines, and words removed.