AGENT SKILL

forge-convention

Write a narrow principle-style skill in the repo's pack for a convention that no type, boundary rule, lint rule or diff check can check, scoped to the files it governs and proven by a failing scenario. Use when a convention needs judgment and no rule tool can state it.

License 许可
MIT
最近更新
2026-11-04
Stars
★ 0
Forks
0

01 前言 Front Matter

name
forge-convention
metadata
{ "layer": "L3" }
description
Write a narrow principle-style skill in the repo's pack for a convention that no type, boundary rule, lint rule or diff check can check, scoped to the files it governs and proven by a failing scenario. Use when a convention needs judgment and no rule tool can state it.

03 SKILL.md 正文

Forge convention

Some conventions need judgment, such as "a new widget kind gets its own module, never a branch in the shared one". No check can decide them, so they become a narrow skill that loads only on the files it governs. This is the last structural step: confirm first that a type, a boundary rule, a lint or structural rule, and a diff check each fail to state the convention, and write down why.

1. Evidence

Collect real instances, enough to meet the pack bar in encode-lessons-in-structure: conventions.md examples and exceptions, review comments, corrections from ven-decisions list --step correction (then ven-transcripts --kind corrections as the fallback), solutions/ entries. Each with a citation. Below the bar, record the lesson with compound and stop.

2. Scope

Settle these, then confirm the rule text with the user in one question. The text becomes the team's rule, so it is their call.

  • The rule. What to do, what not to do, and the one exception if there is one. Short enough to quote whole.
  • Where. The files it governs as globs, and the situations in the words a task would use ("adding a widget kind", "changing how reports load").
  • Why. The cost of breaking it, shown by one cited instance.
  • Never. What the skill must not do, such as spread to files outside its globs or restate a core principle.
  • Neighbors. The nearest core principle and how this rule differs from it.

3. Draft

The skill goes in the pack that ven-profile packs-for <governed files> returns. Its content, in this order:

  • name: the rule in kebab case. description: "<What must always or never happen>. Use when <the situations>." metadata.layer: L2. The pack loads it for all its paths, so the first body line is Applies to: <globs>.
  • A title that states the rule in one sentence.
  • The rule paragraph from step 2.
  • Why: the cost, with the cited instance.
  • Example: a file:line that follows the rule. Counterexample: the original mistake, cited.
  • Distinct from: the nearest principle, named in plain text. An L2 skill may not reference another L2 skill or any L3 skill.

Keep it under 40 lines. A rule that needs more is two rules, or a workflow.

4. Prove and register

Hand the scope and the draft to forge-skill. It writes the failing scenario (an agent breaks the convention without the skill), proves the skill fixes it, runs the routing and trigger evals, and registers the skill in the pack. Don't skip that gate, and don't enable a skill whose scenario passes without it.

5. Record

ven-decisions add --step forge-convention --decision "<pack> skill <name>" --evidence "<scenario>: fails without, passes with"

If conventions.md lists the convention, set its "Enforced by" to the skill name.

04 同仓库更多 Skills

Ventorius
Ventorius/ven-stack

yeet

Take every local change green through the repo's own checks, slice it into conventional commits, push, and with --pr open a pull request on the code host. Use only when the user explicitly asks to yeet, or to commit and push everything; never on your own initiative.

★ 0
Ventorius
Ventorius/ven-stack

write-docs

Write or update documentation from the code: gather facts, pick the shape for the reader, write it plain, and prove every command and path in it. Use when asked to document a repo, module or feature, or to bring stale docs up to date.

★ 0
Ventorius
Ventorius/ven-stack

why

Find why code is shaped the way it is (design rationale, trade-offs, regressions, odd thresholds) from history, tickets, docs and chat, citing every claim and stating its confidence. Use for 'why does X work this way', 'why did we pick Y', or before changing code whose purpose is unclear.

★ 0
Ventorius
Ventorius/ven-stack

verify

Prove a change works with the check that matches its type, do the read-back, and log the pass against the exact tree. Use when a change is ready to call done, before review, commit or stopping, and whenever ven-decisions end refuses an unverified tree.

★ 0
Ventorius
Ventorius/ven-stack

unslop

Cut AI writing tells (filler, model vocabulary, metaphor nouns, hedging, formatting tics) from text while keeping every fact. Use when editing or checking any prose before it ships: docs, PR bodies, reports, skill text.

★ 0
Ventorius
Ventorius/ven-stack

type-discipline

Apply when designing types or data shapes, reviewing a signature, or handling outside data, in any language. Make wrong states fail early: in the compiler for typed languages, in validated runtime contracts for untyped ones.

★ 0