/vibesubin:project-conventionsfrom vibesubin
Sets opinionated defaults for branch strategy, directory layout, dependency pinning, and path portability. Picks GitHub Flow, enforces pinned deps, nudges domain-first structure, audits hardcoded paths. Language-agnostic.
Ships in vibesubin. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
The operator has to make a handful of structural decisions on every new project that are not about secrets: which branch do I work on, where do files go, do I pin dependencies, how do I avoid hardcoding my home directory into source. Each one is a small tax on attention. Most of them have one answer that works for 95% of projects.
This skill pre-pays that tax with one opinionated answer per question. The high-stakes slice — secrets, .env, secret-shaped gitignore entries, CI secret stores — lives in manage-secrets-env. Split this way so the operator can trigger the right depth of care for the right question.
The principle: the best convention is the one the operator doesn't have to invent. When they ask "should I make a dev branch?", answer in one sentence and move on. Don't present a decision framework; make the decision.
Before starting the procedure, write an explicit Assumptions block. Don't pick silently between interpretations; surface the choice. If any assumption is wrong or ambiguous, pause and ask — do not proceed on a guess.
Required block:
Assumptions:
- Project maturity: <new scaffold | active repo under audit | legacy repo with historical conventions to respect>
- Branch strategy: <GitHub Flow (main only) | main + dev | trunk-based | other — detected from CONTRIBUTING.md / recent branches>
- Pinning strategy: <exact-pin + lockfile | caret-range | no lockfile | mixed per-package (monorepo)>
- Sweep scope: <whole repo | single subdirectory | single concern (branches OR deps OR layout OR paths)>
Typical items for this skill:
Stop-and-ask triggers:
main and dev branches with distinct purposes — never unilaterally switch, ask which is the integration targetSilent picks are the most common failure mode: the skill runs, produces plausible output, and the operator doesn't notice the wrong interpretation was chosen. The Assumptions block is cheap insurance.
Pinning, branch strategy, and directory rules diverge by repo type. Detect once, surface in the Assumptions block, apply consistently.
| Repo type | Detection signals | Pinning strategy |
|---|---|---|
| app (default) | next.config.*, vite.config.*, Procfile, Dockerfile at root, package.json with no "main"/"exports" fields | Exact pin every production dep + lockfile committed; CVE auditing in CI |
| library | package.json with "main"/"exports"/"types", Cargo.toml [lib], pyproject.toml [project] with name matching publish target | Semver range for declared deps + lockfile committed for tests only; explicit compatibility matrix in CI (Node 18/20/22, Python 3.10/3.11/3.12, etc.) |
| monorepo | pnpm-workspace.yaml, lerna.json, nx.json, turbo.json, Cargo.toml [workspace], multiple package.json under packages/ | Per-package strategy per the table above; shared lockfile at root |
| template / starter | .github/template-repo marker, README declares "template", forks have diverged content | Exact pin + lockfile (downstream forks update at fork time) |
| docs-only | No source code, only .md/.mdx and config | No production deps — only devDependencies (linters, doc tooling) |
App-style pinning on a library leaks the dep range to every downstream consumer; library-style ranges on an app produce silent floating versions. Catch the mismatch in the audit.
Unpinned dependencies are time bombs. The rule is simple and per-language.
Per repo type — see "Repo type" section above for detection signals:
apps/ use exact pin, packages under packages/ use semver range, root lockfile is committed.Mistaking a library for an app leaks the dep range to every downstream consumer; library-style ranges on an app produce silent floating versions. Catch the mismatch at audit time.
requirements.txt with package==1.2.3 or pyproject.toml + uv.lock / poetry.lock.package.json + package-lock.json / pnpm-lock.yaml / yarn.lock / bun.lockb.Cargo.toml + committed Cargo.lock (yes, even for libraries now).go.mod + go.sum, both committed.Gemfile + Gemfile.lock.composer.json + composer.lock.pom.xml / build.gradle — never latest or +.Strongly recommended: a dependency-update bot is active. GitHub ships Dependabot; Renovate works for GitLab and self-hosted. Weekly frequency for non-security updates, immediate for security. A starter dependabot.yml is in templates/dependabot.yml.template.
Optional: CVE auditing in CI — pip-audit / npm audit / cargo audit / govulncheck. Add it as a warning first; promote to a hard fail once the baseline is clean.
When the operator adds a new dependency, the skill confirms: (1) the version is pinned, (2) the lockfile is updated and committed, and (3) the dependency actually exists. LLM-recommended packages are occasionally hallucinations — catch them before they ship.
Most vibe-coder projects do not need git-flow. GitHub Flow is simpler, safer, and widely supported. Use it unless there's a specific reason not to:
main. Always deployable. Protected. No direct pushes after the first day.feature/<topic>, fix/<topic>, refactor/<topic>, chore/<topic>, docs/<topic>, hotfix/<topic>. Lifetime: hours to days, never weeks.The full discussion — when NOT to use GitHub Flow, what to do about inherited dev branches, staging environments, library maintainers with multiple major versions — lives in references/branch-strategy.md. Read it only if the operator has a specific reason to deviate from the default.
Directory structure is the most underrated form of documentation. A clean tree tells a cold reader (human or AI) what the project does in 30 seconds.
Three cross-language rules the skill applies quietly:
auth/, billing/), not by file type (handlers/, services/). Type-based layouts stop scaling around 20 domains.is_ / has_ for booleans, UPPER_SNAKE_CASE for constants.The full naming table and structural-smell detection list is in references/directory-layout.md.
Every absolute path, IP literal, username, or platform separator in source is a time bomb. This sub-skill audits for them and offers one-line fixes.
Core patterns to grep for: C:\\, /Users/<name>, /home/<name>, literal IPv4 addresses, \\ in string literals, /tmp/<specific>. The full pattern-and-fix table with language-specific equivalents is in references/path-portability.md. When the audit finds more than a couple of files, hand off to refactor-verify for the 1:1 preservation work.
Don't dump the entire skill. Answer the specific question in one paragraph and offer a concrete next step:
Operator: "Should I make a dev branch?"
You: "Probably not — GitHub Flow (just main with short-lived feature branches) is simpler for 95% of projects. What's driving the question?"
Operator: "Dependabot is annoying, can I turn it off?" You: "You can pause it, but I'd recommend keeping it on at a monthly cadence. Most CVE exposure on small projects comes from ignored dependency updates. Want me to switch it to monthly?"
Operator: "Where does this helper function go?"
You: "Group by feature, not file type — if it's part of auth, src/auth/helpers.ts; if it's generic, src/lib/.... Flat utils/ folders stop scaling around 15 files."
.env, .gitignore, or any secret-shaped file. Those are manage-secrets-env's responsibility.git-flow vs GitHub Flow vs trunk-based development. Pick GitHub Flow, state the reason in one sentence, move on.src/ tree because "while you're here". Adjacent convention drift goes in the output as hand-off suggestions — conventions are opinions, and silent imposition is how this skill loses trust fastest.git log on the file (CONTRIBUTING.md, package.json, tsconfig.json, eslint.config.*, .github/) and check docs/ for ADRs before recommending a switch — the "don't silently change" rule above asks for confirmation, this asks for understanding first. If origin is unclear, mark the proposal candidate-with-context-needed; recommending convention changes without context is how working setups get accidentally regressed.When invoked from /vibesubin (the umbrella skill's parallel sweep), this skill runs in read-only audit mode. Do not scaffold any files, do not edit any config, do not touch the directory structure.
Instead, produce a findings-only report:
/project-conventions will apply the scaffolds or fixes when invoked directly.The operator reviews the sweep report and, if they want the fixes applied, invokes /project-conventions directly.
How to tell: the task context from the umbrella will include a sweep=read-only marker or an explicit "produce findings only, do not edit" instruction. Obey it. If the operator invokes this skill by name, the full procedure applies and editing is expected.
When the task context contains the tone=harsh marker (usually set by the /vibesubin harsh umbrella invocation, but can also come from direct requests like "don't sugarcoat" / "brutal review" / "매운 맛"), switch output rules:
/Users/alice/... in source, that's the first line of the report — with file, line, and a one-sentence consequence.requirements.txt — requests is floating and broke last month", not "you may want to consider pinning dependencies".src/config.ts:42". Harsh mode says "src/config.ts:42 hardcodes /Users/alice/Projects/foo — this repo does not run on any other machine."dev branch for no documented reason. Either document why, or delete dev and move to GitHub Flow." Not "branch strategy deviates from GitHub Flow; consider documenting."Harsh mode does not invent findings, exaggerate severities, or become rude. Every harsh statement must still cite the same file, line, or lockfile absence the balanced version would cite. The change is framing, not substance.
When the task context contains explain=layperson (from /vibesubin explain, /vibesubin easy, "쉽게 설명해줘", "일반인도 이해되게", "explain like I'm non-technical", "非開発者でも分かるように", "用通俗的话解释"), add a plain-language layer to every finding this skill emits. Combines freely with tone=harsh. Full rules at /plugins/vibesubin/skills/vibesubin/references/layperson-translation.md.
Every finding gets three questions answered in plain language, in the operator's language (Korean / English / Japanese / Chinese):
Wrap each finding in the box format from the shared reference. Header uses urgency phrase and the finding number. Footer names the hand-off skill.
Findings, counts, file:line references, evidence, and severity are identical to balanced/harsh output. Only the wrapping and dimension annotations are added.
.env, secrets, .gitignore entries for secret-shaped files, anything where a mistake leaks a credential → manage-secrets-env. That skill owns the high-stakes slice.audit-security for severity, refactor-verify for the upgrade diff.refactor-verify for the 1:1 preservation and symbol-level proof.refactor-verify to apply fixes across the codebase safely.CLAUDE.md or README.md → write-for-ai with the rationale.manage-assets.references/branch-strategy.md — when NOT to use GitHub Flow, inherited dev branches, release branchesreferences/directory-layout.md — full naming table and structural-smell detectionreferences/path-portability.md — pattern-and-fix table with language-specific equivalentstemplates/dependabot.yml.template — starter dependency-update configWhat SKILL.md sets; muted values are Claude Code's defaults
Trigger on "branch strategy", "main or dev", "GitHub Flow", "directory layout", "folder structure", "dependency version", "pin this", "Dependabot", "Renovate", "hardcoded path", "absolute path", "Windows path", "path portability", "lockfile", or when starting a new project that needs a baseline layout.
Three short reads, in order
12 skills in this plugin
/audit-securityRuns a deliberately small, hand-curated security sweep across a repo. Finds secrets committed to git, SQL/shell injection patterns, XSS sinks, path traversal, dangerous deserialization, missing cookie flags, wildcard CORS, and tracked credential files. Triages every finding as real / false-positive / needs-review before reporting. Language-agnostic, no heavyweight scanner required./codex-fixPost-edit loop that invokes `/codex:rescue` for a second-model review of the current branch, collects the findings, and hands them off to `refactor-verify`'s review-driven fix mode for triage, verification, and committed resolution. A thin host-specific wrapper — the portable review-driven engine lives in `refactor-verify`. Requires Claude Code with the Codex plugin installed; on every other host the skill emits a one-line fallback and exits without error. Operators whose review findings come from any other source (pasted notes, human PR review, Sentry alert, gitleaks output, Semgrep report, GitHub Advanced Security) should invoke `refactor-verify` directly and skip this wrapper entirely./fight-repo-rotFinds what's rotting in a repo and returns a prioritized diagnosis — dead code first, then god files / hotspots / hardcoded paths / stale TODOs / lopsided import graphs. Dead-code candidates are tagged HIGH / MEDIUM / LOW confidence so the operator can delete with calibrated risk. Pure diagnosis — never edits code, never plans fixes, never runs verification. Hand off to refactor-verify for deletions and restructures, to project-conventions for config issues, to audit-security for CVE dependency rot. Language-agnostic.npx claudepluginhub subinium/vibesubin --plugin vibesubinOther plugins' skills for the same job