/swe-skills:swe:initfrom swe-skills
Initializes an optional repo-local agent collaboration preference file at `.ai/swe.json` by running a short interview or a zero-question quick mode. Use when a user says `initialize agent settings for this repo`, `set up my local agent prefs here`, `run quick init for this project`, or `create .ai/swe.json for how I like to work`. Do NOT use for `npm init`, project scaffolding, dependency installation, or environment bootstrap.
Ships in swe-skills. 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.
None: SKILL.md is the whole skill.
Use this skill to establish an optional repo-local preference layer for how agents should collaborate in a specific repository.
The job is to:
.ai/swe.json as minified JSONThis skill is not a general repository bootstrapper. It configures agent collaboration defaults, not the project's runtime or package setup.
Use this skill when the user wants to:
swe: skills respect local collaboration preferencesDo not use this skill for:
npm init, pnpm init, or similar project scaffolding.env, secret, or credential setupConfirm or infer:
.ai/swe.json already exists.gitignore should be updatedIf the user asks for quick mode, skip the interview entirely.
If .ai/swe.json already exists, do not overwrite it silently. Ask whether the
user wants to keep it, edit it, or replace it.
The preference file path is fixed:
.ai/swe.jsonThe file format is fixed:
"v": 1Use this schema:
v: schema versionautonomy: bounded, ask, or assertiveplan: minimal, short, or designscope: minimal, balanced, or broadverify: narrow, standard, or broadreport: terse, evidence, or fullalts: material or usuallypaths: array of sensitive path stringsDo not write prose, Markdown, YAML, or duplicated default values.
Treat these as internal defaults, not required file contents:
{"v":1,"autonomy":"bounded","plan":"short","scope":"minimal","verify":"standard","report":"evidence","alts":"material","paths":[]}
That means quick mode should normally write:
{"v":1}
Later skills should apply preferences in this order:
AGENTS.md or README.md.ai/swe.jsonSkills should consult .ai/swe.json only when the preference would materially
change behavior, such as planning, edit scope, validation, or reporting. A
missing or malformed file should fall back safely instead of blocking work.
Check whether:
.ai/ exists.ai/swe.json exists.gitignore existsIf an existing preference file is present, read it before proposing any write.
If the user asked for quick mode, follow quick mode.
If the user asked for a normal setup, run the short interview.
If the request is actually about project scaffolding or runtime bootstrap, redirect instead of forcing this skill.
In full mode, ask one question at a time and keep the interview short.
Capture only preferences that materially change agent behavior:
autonomyplanscopeverifyreportaltspathsDo not add soft personality questions that do not change execution behavior.
Convert interview answers into the compact schema values.
Write only non-default overrides. For example:
{"v":1,"autonomy":"ask","verify":"broad","paths":["infra/","migrations/"]}
.ai/swe.jsonCreate .ai/ if it does not exist.
Write .ai/swe.json as minified JSON with no trailing explanation in the file.
Never silently replace an existing valid file. If the file is malformed, show the parse problem briefly and ask before repairing or replacing it.
.gitignore Only When RequestedIf the user explicitly asks for --gitignore or otherwise asks to keep the
file local-only, add this exact path if it is not already present:
.ai/swe.jsonDo not ignore the entire .ai/ directory unless the user explicitly asks for
that broader behavior.
At the end, summarize:
.gitignore changedProvide a concise result that includes:
quick, quick --gitignore, or interview.ai/swe.json.gitignore changedIf the request is out of scope, say so directly and redirect to the correct workflow instead of producing a partial init plan.
User says: Initialize agent settings for this repo and ask me a short questionnaire.
Actions:
.ai/swe.jsonResult: The repo gets a small machine-readable preference file without turning into a broader bootstrap workflow.
User says: Run swe:init --quick --gitignore here.
Actions:
.ai/swe.json{"v":1}.ai/swe.json to .gitignore if missingResult: The repo gets the opinionated defaults in one fast local-first step.
User says: npm init this repo and set up the package.json.
Actions:
Result: This skill stays narrow and does not over-trigger on unrelated init requests.
.ai/swe.json Already ExistsDo not replace it automatically. Show the current state and ask whether to keep it, edit it, or replace it.
State that the file is malformed, show the parse issue briefly, and ask whether to repair or replace it. Do not silently discard existing data.
That is allowed. Skip .gitignore changes unless the user explicitly asks for
local-only storage.
.ai/swe.json and no alternate path by default.gitignore editsWhat SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
17 skills in this plugin
/swe:babysit-prBabysits an open pull request end-to-end by polling every minute, triaging new comments and reviews, handling CI failures, iterating on reviewer scores, and stopping only when the PR is ready to merge. Use when a user says `babysit this PR`, `watch this PR until it's merge-ready`, `handle review feedback on my PR`, or `keep iterating on this PR until reviewers are happy`. Do NOT use for a one-shot PR risk review, merged PR production monitoring, or repo-wide CI debugging with no scoped PR./swe:capture-knowledgeAudits a repository's code and docs to find important conventions, workflows, and architectural decisions that are missing from agent-facing guidance, then drafts review-ready updates. Use when a user says `capture repo knowledge`, `document implicit conventions`, `turn repo patterns into agent rules`, or asks what future agents should remember about a codebase. Do NOT use for a generic repo tour, onboarding walkthrough, or architecture summary that does not need reusable guidance updates./swe:change-validation-plannerPlans the narrowest trustworthy validation path for a scoped code change or diff. Use when a user asks what to run before merging, how to validate a specific change, whether the current checks are enough, or wants a bounded command order from narrow to broad. Do NOT use for writing tests, fixing the code change itself, broad QA sweeps, or generic debugging that needs root cause analysis.Generated from the plugin's indexed repository (ckorhonen/swe-skills) — no native marketplace selected
npx claudepluginhub p/ckorhonen-swe-skills