edit-spec

Solid

Edit a vigiles .spec.ts to change a compiled instruction file (CLAUDE.md / AGENTS.md) — add, modify, or remove a rule, section, command, or key file. Use whenever you need to change a CLAUDE.md/AGENTS.md that carries a vigiles hash (edit the spec, never the artifact), including adding a new enforce()/check()/guidance() rule.

AI & Automation 13 stars 1 forks Updated today MIT

Install

View on GitHub

Quality Score: 83/100

Stars 20%
38
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

Edit a `.spec.ts` file to update the project's instruction files. The spec is the source of truth — CLAUDE.md and AGENTS.md are compiled build artifacts that must not be edited directly. ## Arguments $ARGUMENTS — What the user wants to change. Examples: - "add a rule about always using the custom logger" - "update the architecture section" - "add src/services/auth.ts to key files" - "add npm run lint to commands" - "change the testing guidance" ## Instructions ### Step 1: Find the Spec Look for spec files in the repo root: - `CLAUDE.md.spec.ts` — source for CLAUDE.md - `AGENTS.md.spec.ts` — source for AGENTS.md - Any `*.spec.ts` matching instruction files If no spec exists: if there's a hand-written `CLAUDE.md`, suggest the `adopt-spec` skill; otherwise suggest `npx vigiles init` to scaffold one. ### Step 2: Read and Understand the Spec Read the spec file. It's a TypeScript file that exports a `claude()` call with these fields: ```typescript import { claude, enforce, guidance, check, every } from "vigiles/spec"; export default claude({ // Optional: output target (defaults to "CLAUDE.md") target: "CLAUDE.md", // or multi-target: // target: ["CLAUDE.md", "AGENTS.md"], // Prose sections — become ## headings in compiled output sections: { positioning: "What this project does...", architecture: "How the codebase is structured...", }, // File paths verified to exist at compile time keyFiles: { "src/index.ts": "Main entry point", }, /...

Details

Author
zernie
Repository
zernie/vigiles
Created
4 months ago
Last Updated
today
Language
TypeScript
License
MIT

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category