Find code by asking what it does. A CLI for coding agents that uses Jev to discover relevant files and source context.
TypeScript ai-sdkclaude-codeclicode-searchcodexcoding-agentscontext-retrievaldeveloper-toolsjevsemantic-searchtypescriptvercel-ai-gateway
skills: add audit-agents
David Zhangba32f5b026d4
diff --git a/.agents/skills/audit-agents/SKILL.md b/.agents/skills/audit-agents/SKILL.mdnew file mode 100644index 0000000..57523af--- /dev/null+++ b/.agents/skills/audit-agents/SKILL.md@@ -0,0 +1,40 @@+---+name: audit-agents+description: Audit or rewrite AGENTS.md so it holds only lasting principles. Use when writing or revising contributor guidance, when it has picked up commands, paths, status or session history, or when its rules slow the feedback loop.+---++# Audit Agents++AGENTS.md is read by everyone who will ever work on the project. Picture the next thousand contributors over the next hundred years: a line belongs only if it is still true, and still changes what they do, after every file, tool and dependency has been replaced.++## Workflow++1. Read the AGENTS.md and the root readme. This is a document audit: run no builds and no tests.+2. Give every line one verdict, using the tests below.+ - **Keep**: a principle that passes every test.+ - **Rephrase**: a lasting lesson worded in today's mechanics, or too vague to act on.+ - **Move**: a detail someone needs. Name the owner it belongs to: a readme, a manifest, a skill or a spec.+ - **Delete**: repetition, history, or a line that changes nothing.+3. Check the shape against the example below.+4. Report the findings, highest impact first. Quote each line, give its verdict and the replacement text, and group repeats. Report no finding you can't quote.+5. Edit only when the user asks for a rewrite. Then start from the example, write the file, and reread it as a newcomer with no history of this session.++## Tests for a line++- **A hundred years.** No commands, flags, paths, file or function names, dependency choices, tuned values, plans, status or bug stories. Keep the lesson and move the mechanics to their owner. The one exception is a pointer to an owner (a readme or a skill), which exists so the detail can live there.+- **A thousand people.** A newcomer can act on it without knowing this session, this author or this month's work.+- **Changes what they do.** Delete a line a capable contributor already follows.+- **Plain and concrete.** A principle is not an abstraction. "Look at the picture" works; "match verification to the claim" doesn't. Prefer a short sentence with its consequence, and one example from the product over a general noun.+- **Iteration speed.** This is the core principle and must be stated outright: optimize the time to feedback you can trust, run the narrowest check that answers the question, and keep the full gates for milestones the plan names in advance. Flag any rule that adds process to every loop, or puts the full gates before each commit, merge or push. Never trade away a real acceptance requirement for speed.++## Shape++[`assets/example-agents.md`](assets/example-agents.md) is an AGENTS.md any project can adopt, and it owns the section order. Read it before judging the shape or rewriting.++To adopt it, copy it and resolve every `<…>`; none may survive into the project's file.++- `<skill: name>` names a skill from the pack this skill ships in. Replace it with a link to that skill where the project installs it. If the project doesn't have the skill, drop the pointer and keep the principle.+- `<skill: the project's own …>` stands for a skill only this project has. Link it, or delete the sentence.+- Every other `<…>` is filled from the project's readme.++Delete a section the project doesn't need; add one only for a principle that fits nowhere else.diff --git a/.agents/skills/audit-agents/assets/example-agents.md b/.agents/skills/audit-agents/assets/example-agents.mdnew file mode 100644index 0000000..6e5cbf8--- /dev/null+++ b/.agents/skills/audit-agents/assets/example-agents.md@@ -0,0 +1,71 @@+# Working in this repo++Read the root readme first: what the product is, how the repo fits together, and how to build and check it. Active plans live with their specs, and each one says what to do next. If a folder you're working in has a readme, read it before continuing. The readmes are written for you.++These are the principles. Commands, flags and paths live with the code that owns them: the readmes, the manifests, and each tool's own usage text.++## Talking to the user++The user is very technical but doesn't read the code day to day. Pointing at code is fine; introduce a variable, function or module briefly the first time you mention it.++Lead with contracts. When work touches an interface between components (<two or three of this product's interfaces>, a module boundary), say what the contract looks like and how it changed before anything else.++Answer routine questions from the evidence. Ask the user only when the answer changes a decision that matters and can't be settled any other way.++## Proving a change++Optimize for iteration speed. The measure is the time to feedback you can trust, not the amount of process you ran.++Run the narrowest check that answers your question: one test, then one file, then one package. That is the proof for everyday work, including a commit, a merge and a push.++**The full gates are for milestones only.** Running everything is slow and saturates the machine, so it happens at a milestone the plan names in advance (a spec's stated checkpoint, a release) and once when a spec is closed. It is not a step before each commit, merge or push, and never a feedback loop. An agent working on one piece of a plan does not run it; whoever integrates the plan does, at the milestone.++Between milestones, a change is checked by what it can move: its own tests and the output it touches. A failure found later at a milestone is fixed then; that is cheaper than gating every step.++Every expensive run must answer a question a cheaper one can't. <Name this product's expensive runs>; do only the ones a change can move. Reuse a result that is still valid, and rerun only what a change could have invalidated. Docs and data that no code reads need no run at all.++Write the test first. Before changing behaviour or fixing a bug, invoke <skill: write-tests> and follow its red/green workflow. Test what the product does and how it fails, not how the code is shaped.++A change that shouldn't alter behaviour (a refactor, a performance change) must leave the output unchanged, or be a named decision.++Never loosen a requirement to make a check pass. A narrow pass proves a narrow claim: say what you verified, what you assumed and what is unfinished.++Don't wait on a long run. Start it in the background and keep working. Give it a visible sign of progress and a point where you stop, and never repeat a failure unchanged.++## What people see++Look at the actual output. A passing check is not evidence that something reads well to the person in front of it.++For any visual change:+- get an unprimed second opinion with <skill: screenshot-critique>;+- judge before against after, and our output against references, with <skill: compare-screenshots>;+- show the user with <skill: preview-shots>.++Before changing <the kind of output this product is judged on>, invoke <skill: the project's own skill for it>.++## <The product's own rules>++<The few rules that make this product what it is: what it must always do, what it must never do, and who decides. State each as a plain sentence with its consequence. Delete this section if the product has none.>++Before proposing or changing one of these rules, invoke <skill: the project's own skill for them>.++## One owner per concept++Use what the repo already chose before writing your own. Find the existing owner of a concept before creating another.++Prefer one general rule to a special case, and a simple structure to an abstraction nobody needs yet. When something replaces an old mechanism, delete the old one. When a change exposes a duplicate or a stale owner, invoke <skill: refactor-clean>.++## Parallel work stays cheap++Every parallel checkout is a full copy, and large files, installed dependencies and build output multiply with each one.++- Fetch only the large files your task needs.+- Share what doesn't change between checkouts. Don't make another copy.+- Never share build output between checkouts whose sources differ. They overwrite each other's builds, and the symptom is an error from someone else's change.+- Remove a checkout and its build output when its branch is merged.++## Skills++Skills hold the procedures behind these principles. Load the one that covers your work before you start. Keep them current: when a pass learns a lesson (a gotcha, a pattern that paid off, a rejected approach), add it to the owning skill in the same commit, following <skill: write-skills>.++Before changing this file, invoke <skill: audit-agents>.