Lc rules
Safe workspace rules initializer for Codex
npx -y skills add cloudh0/lc-rules --skill lc-rulesAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- 12 days oldThe repository was created 12 days ago. New is not bad, but a brand new repository carrying a familiar-sounding name is the shape a typosquat arrives in, and there has been no time for anyone else to find a problem with it.
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Create, audit, or change a workspace's routed rules/ tree and concise agent guidance without overwriting existing project instructions. Use when the user says "lc-rules 스킬 초기화 해줘", asks to initialize or refresh workspace rules, discover conventions across multiple projects, prepare rules for a new frontend/backend project, inherit rules from a reference project, connect AGENTS.md/CLAUDE.md/GEMINI.md to project rules, choose Git or branch conventions, says "브랜치 규칙 전환해줘", or checks an existing lc-rules installation.
SKILL.md
8.3 KB, ~1.7k tokens by cl100k_base, as published. Nobody here has run it
LC Rules
Create a small evidence-based rules router. Let agents load only the critical, code, QA, environment, team, and Git guidance relevant to the current task. Preserve existing project files and preview every mutation.
Core workflow
- Resolve the project root. Prefer the Git root; otherwise use the user's explicit workspace path or current directory.
- Inspect the entire workspace for Git roots, package manifests, framework configuration, instruction files, existing
rules/, and nested projects before changing anything. - Read install-contract.md.
- Select the evidence mode:
- Existing workspace: infer rules from current configuration, source, tests, CI, and Git history.
- Greenfield project: research current official guidance for the selected framework versions before coding.
- Reference project: extract reusable rules from a user-supplied path and separate project-specific values.
- For a multi-project workspace, new
*-fe/*-beproject, greenfield setup, or reference-project extraction, read project-discovery.md. - Preview the deterministic starter changes for all supported agent entry points:
python3 <skill-dir>/scripts/init_rules.py --target <project-root> --agent all
- Confirm that
AGENTS.md,CLAUDE.md, andGEMINI.mdare all in the plan. Existing files must retain everything outside the managed marker; missing files may contain only the managed block. Review everyCREATE,UPDATE,PRESERVE,CONFLICT,RELEASE, andUNCHANGEDline. Stop on a non-zero exit, anyERROR, any unresolvedCONFLICT, an unexpected ownership change, or the wrong target root. - Apply the accepted starter setup:
python3 <skill-dir>/scripts/init_rules.py --target <project-root> --agent all --apply
- Generate focused project rules from evidence. Record assumptions, selected versions, sources, research date, and only a portable reference-project label or repository-relative path under the
configurationobject in.leecat/lc-rules.json, using the schema in the install contract. Do not turn uncertain observations into mandatory rules. - Always ask the user to choose one of the four Git-strategy routes during a new initialization. If an explicit, established strategy already exists, recommend route 4, but do not treat it as accepted without the user's choice. Follow Git strategy selection below.
- After strategy acceptance, use the four templates under
assets/git-guidance/to generate synchronizedrules/git/WORKFLOW.md,WORKFLOW.ko.md,BRANCHING.md, andBRANCHING.ko.md. Replace every template token, preview all four files, and record their portable paths underconfiguration.git. - Manually materialize thin nested routers for accepted subprojects using the exact contract in the project-discovery reference. Do not run the full starter installer against a nested project. Connect each nested instruction file to its nearest
rules/RULES.md, then record the portable inventory underconfiguration.projects. - Verify the installation:
python3 <skill-dir>/scripts/init_rules.py --target <project-root> --check
BASELINE_READY means the deterministic starter is healthy but tailoring is not
recorded as complete. COMPLETE means the configured evidence, bilingual Git workflow
and policy, and nested-project inventory also passed validation.
Git strategy selection
Read branch-strategies.md when initializing Git rules, creating automatic branch rules, or changing an existing branch policy.
For a new policy, first offer these routes and wait for the user's choice:
- Recommend by team profile — ask only for team size, concurrent work level, release cadence, and risk/compliance level; then recommend one strategy with reasons.
- Choose a common strategy — show the one-line strategy menu from the reference.
- Reuse a reference project — inspect a supplied project path and propose a sanitized policy.
- Keep or customize the current policy — preserve the current rules and change only selected decisions.
Treat "브랜치 규칙 전환해줘" and equivalent requests as a policy migration:
- Inspect the current local rules and remote protections read-only.
- Offer the same selection routes again.
- Show the rule diff, migration impact, and any remote settings that would remain unchanged.
- Wait for explicit approval before editing the policy.
- Change local rules first. Modify hosted rulesets, protections, or repository settings only with separate authorization.
Branch strategy depends primarily on collaboration and release topology. Research current provider capabilities when useful, but never replace an active team policy merely because another style is newer.
Project rule quality
- Follow this precedence: explicit team decision → supplied reference project → observed workspace convention → official version-matched documentation → community practice.
- Separate shared team rules from framework and project rules.
- Include ownership, PR review, required checks, API/schema compatibility, migrations, dependencies, security, environments, observability, tests, accessibility, releases, rollback, and decision-record policies when applicable.
- Keep generated routers concise. Put detailed framework or strategy guidance in one-level references and load it only for the relevant task.
- Never silently refresh researched conventions. Preview the diff and ask before changing established behavior.
Agent guidance targets
Treat a normal AI initialization request, including "lc-rules 스킬 초기화 해줘",
as an all-agent setup. Inspect and update AGENTS.md, CLAUDE.md, and GEMINI.md
in the same preview/apply transaction. Preserve all existing content outside the managed
marker and create a missing file with the managed block.
Use --agent auto or a specific target only when the user explicitly narrows the setup.
An explicit codex, claude, gemini, or all target replaces the tracked
instruction-file selection. auto keeps previously tracked entry points and adds
detected ones. Narrowing never deletes files or removes an existing LC Rules block
from a dropped entry point; that block becomes project-owned and must be removed
manually if it is no longer wanted:
python3 <skill-dir>/scripts/init_rules.py --target <project-root> --agent auto --apply
python3 <skill-dir>/scripts/init_rules.py --target <project-root> --agent codex --apply
python3 <skill-dir>/scripts/init_rules.py --target <project-root> --agent claude --apply
python3 <skill-dir>/scripts/init_rules.py --target <project-root> --agent gemini --apply
Safety
- Keep preview as the default. Pass
--applyonly after reviewing the target and changes. - Preserve every existing rules file whose content differs from the starter template.
- Upgrade an untouched previously managed starter file when its recorded hash proves that it has not been project-edited.
- If a formerly managed file was intentionally made project-owned, copy the exact
sha256printed on itsCONFLICTpreview and rerun with--accept-preserved <relative-path>=<sha256>. Confirm that the preview showsRELEASEfor only that file before applying. Repeat the flag for separately reviewed files. - Modify instruction files only inside the
lc-rulesmarker block. - Refuse malformed marker blocks and symlinked destinations.
- Never use a force-overwrite mode.
- Do not copy secrets, real service URLs, identities, ports, or repository-specific values from a reference project.
- Do not create, switch, delete, or force-push a branch while unrelated working-tree changes make the operation unsafe.
- Treat the generated starter as a baseline. Project-specific rules remain owned by the project.
Gives 0 of the 12 instructions most pr commit review skills give in ~1.7k tokens
Counted across 888 of the 1,342 authors here whose files we hold, read 2026-08-07
- use conventional commits formatin 127 of 888, across 115 files
- keep subject line under 72 charactersin 62 of 888, across 48 files
- delete branches after mergein 51 of 888, across 38 files
- use imperative mood in subject linein 51 of 888, across 42 files
- use imperative mood in commit messagesin 44 of 888
- verify directory is ignored before creating worktreein 43 of 888, across 12 files
- generate a conventional commit messagein 43 of 888
- add unignored worktree directories to gitignorein 42 of 888, across 10 files
- make atomic commitsin 39 of 888, across 27 files
- run tests before committingin 36 of 888, across 25 files
- verify clean test baselinein 35 of 888, across 9 files
- split unrelated changes into separate commitsin 35 of 888, across 30 files
Said here and by no other author read
- inspect the workspace before changing anything
- read the install contract
- select an evidence mode for rules generation
- read the project discovery reference for multi-project setups
- preview the starter setup before applying
- stop on any error or conflict during preview
Grouped from the skills themselves: near-identical wordings counted once, and counted by distinct author, so one author publishing three of these counts once. Length counted with cl100k_base; the agent that loads this file may tokenize it differently.