init
Skill2 starsChanged 2 months agoMITView on GitHub
Generates JevGuard's project rules by reading CLAUDE.md/AGENTS.md, the README, code conventions, and (on Claude Code) the user's auto-memory. Invoke it explicitly with /jevguard:init when the user asks to initialize or regenerate JevGuard's rules.
156 other projects use a version of this.
Adopted by
Most recently taken up by
- kendrick/working-memory-kittheir own version, first seen Nov 29, 2026
- guhcostan/claude-mega-braintheir own version, first seen Nov 29, 2026
- flegars/greenlyttheir own version, first seen Nov 29, 2026
- nuncaeslupus/doc-controltheir own version, first seen Nov 29, 2026
- mentealterne/GYOStheir own version, first seen Nov 29, 2026
- michalzan/foremantheir own version, first seen Nov 29, 2026
Used with
Projects with it also use daily-arxiv, exp-eval and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
LambenthanSkilldaily-arxiv
每日从 arXiv 拉取新论文,过滤相关性,auto-ingest 高优先级论文,检测 SOTA 更新
Also in 5 projects that use this
LambenthanSkillexp-eval
实验判决门:Review LLM 独立评判实验结果 → 4 种判决路径 → 自动更新 claims confidence、ideas status、graph edges
Also in 5 projects that use this
skyllwtSkillexp-pilot-eval
Pilot result evaluation — read pilot results, apply success criteria, update idea page (pilot_result, failure_reason if failed), generate PILOT_VERDICT_REPORT. Called by /ideate Phase 5 after /exp-pilot-run.
Also in 4 projects that use this
skyllwtSkillexp-pilot-run
Pilot experiment execution — read Pilot Spec YAML, write pilot code, run experiment(Confirm with the user before operation and require the applicant to conduct manual inspection), return results. Called by /ideate Phase 5. Does NOT modify wiki pages or judge pass/fail.
Also in 4 projects that use this
gaebalaiSkillcodex-system
PROACTIVELY consult Codex CLI, your highly capable supporter with exceptional reasoning and task completion abilities. Codex is a trusted expert you should ALWAYS consult BEFORE making decisions on: design choices, implementation approaches, debugging strategies, refactoring plans, or any non-trivial problem. When uncertain, consult Codex. Don't hesitate - Codex provides better analysis. Explicit triggers: "think deeper", "analyze", "second opinion", "consult codex".
Also in 4 projects that use this
gaebalaiSkilldesign-tracker
PROACTIVELY track and document project design decisions without being asked. Activate automatically when detecting architecture discussions, implementation decisions, pattern choices, library selections, or any technical decisions. Also use when user explicitly says "記録して", "設計どうなってる", "record this". Do NOT wait for user to ask - record important decisions immediately.
Also in 4 projects that use this
- +5 more from Lambenthan
- +1 more from skyllwt
Other versions156 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 156
- microsoft/vscode★ 196ksame name
- mcollina/skills★ 2ksame name
- skyllwt/OmegaWiki★ 1.7ksame name
- DAIR-AutoResearch/AutoSci★ 1.7ksame name
- PKU-DAIR/AutoSci★ 1.7ksame name
- skyllwt/AutoSci★ 1.7ksame name
- TokenRollAI/cc-plugin★ 487same name
- pipecat-ai/gradient-bang★ 420same name
- AlexPEClub/ai-coding-starter-kit★ 382same name
- dannysmith/tauri-template★ 317same name
146 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
The file
We split this skill into the rules it gives an agent
4 rules. 0 are common, 1 is distinctive, and 3 are very specific to this project.
0
Common
Most of the 143 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 18
Read, if they exist, in this order:
- Very specific: line 23
If you're running on Claude Code (check whether ~/.claude/projects/ exists), the user's auto-memory relevant to *this* project: read …
- Very specific: line 70
Don't invent vague rules like "write clean code": every instructions must be a question or statement a human reviewer could check by …
- Very specific: line 121
Write the merged rules object to .jevguard/rules.json (create the .jevguard/ directory first if needed).
“Common” is measured: kept by at least 6 in 10 of the 143 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Your job is to infer the project's rules and write them to
.jevguard/rules.json. If that file already exists, read it first and add
to it rather than overwriting existing rules.
Always write instructions and criteria in English, even if you're
working in a session in another language. You can summarize the rules to the
user in the conversation's language, but the text that ends up in the JSON
must be English.
1. Gather context
Read, if they exist, in this order:
CLAUDE.mdand/orAGENTS.mdat the project root (and in subdirectories for a large project).README.md.- If you're running on Claude Code (check whether
~/.claude/projects/exists), the user's auto-memory relevant to this project: read~/.claude/projects/*/memory/MEMORY.mdand open the linkedfeedback_*.md/project_*.mdfiles that look applicable to this repo (language, style, git workflow, tests). If the directory doesn't exist (Codex, or Claude Code with no active memory), skip this step without error: that's normal, not a problem. - Quickly scan the conventions already present in the code with the tools you have (Read/Grep/Glob): linter/formatter config, comment style, test framework, naming conventions. No need for an exhaustive scan: 5-10 representative files are enough.
2. Turn each convention you find into a rule
Each rule is one entry in the .jevguard/rules.json object, keyed by a
short id (e.g. no-function-comments). Every rule has instructions
(string), scope (array of edit/bash/response/all), and an optional
action (block/warn/off: leave it out unless you already know this
rule should differ from the project default). Then, depending on type:
noul(yes/no) for binary rules: "no comments in functions", "no leftoverconsole.logcalls", "commit messages are in English". Fields:type: "noul",pass_if: "yes"|"no", optionalcriteria: {true, false}clarifying what each means.scorefor things on a scale: commit message quality, how minimal a refactor is. Fields:type: "score",criteria(an ordered array of 2-10 level descriptions),min_score(the lowest passing position there's no ceiling, only a floor, so if the rule is about NOT wanting too much of something, put the clean/desired state as the last, highest level).choicefor categorical things with a few known options: "which test framework is used", "which error-handling style". Fields:type: "choice",criteria(a map of option -> description or null),pass_options(array of the acceptable option names).
Example:
{
"no-function-comments": {
"type": "noul",
"instructions": "The code contains a comment inside or directly above a function",
"scope": ["edit"],
"pass_if": "no"
}
}Don't invent vague rules like "write clean code": every instructions must
be a question or statement a human reviewer could check by looking at the
content, in a few seconds.
For noul, always phrase instructions as a direct, positive statement
about what IS present/true, never as a negation or "avoid X". Pick
pass_if accordingly, not the wording:
- Wrong:
instructions: "The code avoids comments inside functions",pass_if: "yes" - Right:
instructions: "The code contains a comment inside or directly above a function",pass_if: "no"
Same logic for score/choice: levels/options must describe what IS the
case, not what isn't.
Check whether Jev can actually judge each convention before turning it
into a rule. Jev only ever sees the content being written right now
(state), never a diff, never the previous version, never what happened
in earlier turns. Good fit: anything visible in a single snapshot, such as
style, presence of a pattern, language, tone, whether something is
mentioned. Bad fit: anything that requires comparing to a previous
version, such as "keep this backward compatible", "don't change the
behavior", "don't regress performance". Skip conventions like that rather
than writing a rule for them; mention them in the closing summary as
something JevGuard can't verify.
Calibrate min_score with real numbers, don't guess it. Temporarily set
min_score to an unreachable value like 99, then trigger the rule with
three test writes: a clear violation, clearly clean content, and a short or
minimal edge case (Jev tends to answer less confidently on very short
input, so test that separately from a realistic full-length one). Every
write will report a score X, required >= 99 failure with the real
number. Read the three scores and set the real min_score between the
clean case and the violating ones, with margin. Then remove the 99.
Gotcha: while min_score is still at the unreachable calibration value,
editing .jevguard/rules.json to fix it also gets blocked, because the
rule fails by construction on any content, including the fix itself. Ask
the user to run /jevguard:pause first; never invoke it yourself.
If a noul rule turns out unstable (the same or similar content passes
one time and fails another, or only weakly crosses 0.5), don't keep
tweaking the wording: switch it to score. noul is reliable for clear
semantic things (an emoji is present, the text is in English, a function
has a comment) but weaker for subtle, low-signal patterns, such as a
specific punctuation mark (a double hyphen used as a dash, for example).
A score with 2-3 explicitly described
levels gives the model concrete anchors instead of one loose yes/no
boundary, which tends to produce a cleaner separation between passing and
failing content.
3. Save and validate
Write the merged rules object to .jevguard/rules.json (create the
.jevguard/ directory first if needed). Then run
node "${CLAUDE_PLUGIN_ROOT}/dist/bin/jevguard-validate.js" and fix
whatever it reports before moving on: it parses the file with the same
schema the hook uses, so this catches typos and shape mistakes immediately
instead of them silently doing nothing later.
4. Close with a summary
List the rules you created (id + a one-line description). If you skipped a
convention because Jev can't judge it from a single snapshot (see above),
name it too, so the user knows it's not covered rather than assuming it is.
Remind the user they live in .jevguard/rules.json (or wherever .jevguard/config.json
points), are editable by hand at any time, and that default enforcement
(block/warn per event) is configured in .jevguard/config.json.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

