/lstack:oss-readyfrom lstack
Adds standard open-source community files (LICENSE, README, CONTRIBUTING, CODE_OF_CONDUCT, SECURITY) and GitHub issue/PR templates to a project.
Ships in lstack. 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.
Transform a project into a professional open-source repository with standard community files and GitHub templates.
Two terms are used throughout:
PH='\[(YEAR|COPYRIGHT HOLDER|INSERT [A-Z ]+)\]|TODO|TBD|FIXME' in a created file, or in a line the run added to an existing file.Prerequisites: a git repository on a named branch with an origin remote. Run the block in references/repo-sync.md once, before Step 0. It stops at the first failure, then stashes, rebases on origin, and restores the stash; steps: What the block does in that file.
On a non-zero exit, print the final report with BLOCKED and the recovery commands the block printed. Never discard changes. If the only failure is the missing origin and the user approves continuing, go to Step 0 and list Repo Sync skipped (no origin) under Uncertainty:.
Before Step 0, check
references/edge-cases.md. If a case matches the repo, handle it as written there first.
Switch to an oss feature branch, created from the repo's prefix convention or reused with the user's approval; never reset an existing branch. If the switch fails, stop with BLOCKED. Steps: references/repo-sync.md → Step 0: Create feature branch.
Record the stack, purpose, existing files, license, repo URL, README language, visibility and fill values, as references/file-specs.md → Analysis values describes. Ask for the security and conduct contacts in one question. If no stack is detectable, ask which stack to assume.
Write README.md and CONTRIBUTING.md from the Step 1 values. Copy LICENSE from assets/LICENSE-MIT.txt unless one exists or the user names another license. Copy CODE_OF_CONDUCT.md (Contributor Covenant 2.0) and SECURITY.md from assets/. Replace each placeholder with its Step 1 value. Section lists and per-file rules: references/file-specs.md.
Take every usage example from the repo's code, scripts or --help output. Never invent a command or contact. A section with no source in the code is left out and listed under Manual review.
Copy each missing file from assets/.github/: ISSUE_TEMPLATE/bug_report.md, ISSUE_TEMPLATE/feature_request.md, PULL_REQUEST_TEMPLATE.md. Keep every existing file and workflow under .github/ unchanged.
Create each missing file. Skip rules and contents: references/file-specs.md → docs/.
docs/
├── ARCHITECTURE.md # System design, components
├── DEVELOPMENT.md # Dev setup, debugging
├── DEPLOYMENT.md # Production deployment
└── CHANGELOG.md # Version history (skip when a root CHANGELOG.md exists)
Add each missing license, description and repository field to the root manifest. Never overwrite a field that has a value. Parse the file after the edit. Per-stack fields and parse commands: references/file-specs.md → Project metadata.
Append each missing pattern for the stack from references/file-specs.md → .gitignore. Check one pattern with grep -qxF '<pattern>' .gitignore. Never remove a line.
pass, fail or not applicable with its reason.PH as defined in Placeholder above. Run the placeholder grep on each created file: grep -nE "$PH" <file>.git diff -U0 -- <file> | grep -E '^\+' | grep -E "$PH".git status --porcelain. Confirm that no line starts with D or D .Do not commit or push. The user reviews and commits the branch.
After each of Steps 1-7, print a report in this format (example: references/final-report.md):
◆ [Step Name] ([step N of 7] — [context])
··································································
[Check 1]: √ pass
[Check 2]: × fail — [reason]
[Criteria]: √ N/M met
____________________________
Result: PASS | FAIL | PARTIAL
Name each check after what the step validates. Step 0 gets no report. If Step 0 or 1 fails, stop with BLOCKED. If one of Steps 2-6 reports FAIL or PARTIAL, continue; the run ends PARTIAL. Step 7 runs whenever Step 2 started.
Print one final report in the chat after the last step report; write a file only on request. Four parts, in order:
Result: the status word, the repo and branch, and the reason for PARTIAL or BLOCKED.Evidence: files created and updated, and the result of each Step 7 check that ran.Uncertainty: placeholders left, checks not run and why, and untested behavior.Decision: the approval needed, or No approval needed., then each remaining user action.Status: apply the first matching rule (BLOCKED, then PARTIAL, then COMPLETE) in references/final-report.md → Status rules, which also lists the only allowed not applicable reasons, the outcome table, examples and reader checks.
Step 7 runs each check with test -f, grep, git or a visual check.
LICENSE exists. A new MIT file passes grep -c "MIT License" LICENSE (or the named license's title). An existing one is unchanged: git diff --quiet -- LICENSE.README.md is at least 40 lines with Installation, Usage, and License sections. In English, grep -ciE "^#+ .*(install|usage|license)" README.md returns >= 3; in another language, check the headings visually.CONTRIBUTING.md references the issue tracker plus a branching/PR workflow: grep -iE "issue|pull request|branch" CONTRIBUTING.md.CODE_OF_CONDUCT.md mentions the Contributor Covenant: grep -i "contributor covenant" CODE_OF_CONDUCT.md.SECURITY.md lists a vulnerability-reporting contact: grep -E "@|https?://" SECURITY.md..github/ISSUE_TEMPLATE/bug_report.md and feature_request.md exist with YAML frontmatter (name:, about:)..github/PULL_REQUEST_TEMPLATE.md contains a checklist (- [ ]).docs/ file the run created starts with a # heading: head -1 <file>..gitignore contains each Step 6 pattern for the stack.package.json, pyproject.toml, Cargo.toml) declares license, description, and repository, and still parses.grep finds no match.Result: and a status word, has the other three parts, and passes the reader checks in references/final-report.md.The expected output is the final report above. A complete-run example, and the test -f check to run before printing it: references/final-report.md → Example: a complete run.
Detection, handling and status per case: references/edge-cases.md. Never overwrite user content, and stop rather than discard changes.
Optional and propose-only. After the run's result is delivered, run this check:
gh call failed and a workaround worked.docs/ files to skip.references/ (the directory holding this SKILL.md). Bump the patch number of metadata.version. If the skill is an installed copy or tracked in git, say so. Commit nothing unless the user asks.Off — the user opted out.assets/: LICENSE-MIT.txt, CODE_OF_CONDUCT.md (Contributor Covenant 2.0), SECURITY.md, and .github/ issue and PR templatesreferences/repo-sync.md: the Repo Sync blockreferences/file-specs.md: analysis values, per-file content, fill values, metadata, .gitignorereferences/final-report.md: status rules, outcome table, examples, reader checksreferences/edge-cases.md: detection, handling and status per edge caseassets/CODE_OF_CONDUCT.md (opens in a new tab)assets/LICENSE-MIT.txt (opens in a new tab)assets/SECURITY.md (opens in a new tab)references/edge-cases.md (opens in a new tab)references/file-specs.md (opens in a new tab)references/final-report.md (opens in a new tab)references/repo-sync.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub luongnv89/skills --plugin lstack20 skills in this plugin
/agent-configCreate, update, or audit AGENTS.md (default) or CLAUDE.md agent instructions: set up, prune, add a rule, or merge CLAUDE.md or .cursorrules into one file Claude Code, Codex, and Cursor all read. Don't use for READMEs, skills, or subagents./auto-pushGenerate a commit message, stage all changes, and push to remote after scanning for secrets, large files, and protected-branch risks. Skip for opening PRs, code review, or cutting releases/tags./cleanup-projectPrepare a git repo before new work: review uncommitted changes, fix .gitignore, delete merged branches, end on clean main, or inspect one branch before deciding. Don't use for dead code, commit-and-push, releases, LICENSE files, or git how-tos./cli-builderBuild production-quality CLIs with language detection and a five-step approval-gated workflow. Use when wrapping an existing module or app. Don't use for GUI/TUI apps, web APIs, or one-off shell scripts./code-analysis-setupPlan, then install on approval, free static analysis (lint, SAST, secrets, deps) across repos, merged into existing hooks and CI. Use when adding code analysis. Don't use for one-repo security stacks (security-setup) or CI/CD (devops-pipeline)./code-reviewReview or improve code in four modes: bug/security review (default), performance, clean-code audit, slop cleanup (mode:review|perf|clean|cleanup). Don't use for features, tests (test-coverage) or a full comment audit (comment-audit).Other plugins' skills for the same job