/idd:init-iddfrom IDD Stack: Issue-Driven Development
Generates a .idd.yml config file by auto-detecting a repo's language, framework, test runner, and size. One-time setup for IDD Stack.
Ships in IDD Stack: Issue-Driven Development. 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.
Initialize IDD Stack for the current repository. Scans the codebase to detect language, framework, test runner, and repo size, then generates a .idd.yml config file with project-specific defaults.
Invocation: /init-idd — interactive. /init-idd --auto (or IDD_AUTO_MODE=1) — no prompts; an existing .idd.yml is kept.
.idd.yml is outdated after a stack migration..idd.yml and the repo's own .gitignore (Ignore Rule)..gitignore ignore .idd/cache/ (Ignore Rule — every path)..idd.yml (or legacy .gitissue.yml) and follow the merge path if found..idd.yml to the repo root.Before any operation, verify the environment. On failure, output the exact error from references/error-messages.md and stop.
git rev-parse --git-dirThat is the only prerequisite. This skill does not need gh or GitHub authentication — it generates a local config file.
Verify that this skill's bundled template and reference files are present. If any are missing, stop immediately and print:
✗ Missing bundled dependency: {missing_file}
To fix: asm install https://github.com/luongnv89/idd --skill init-idd
(or reinstall the full distribution)
Plugin: claude plugin marketplace add luongnv89/idd
claude plugin install idd@idd
(or: claude plugin update idd@idd)
Then restart the agent session and re-run /init-idd.
Check these files relative to the skill's directory (the dirname of this SKILL.md):
templates/idd-template.yml — canonical config template with all schema fieldsreferences/error-messages.md — complete error catalog with triggers and exact outputreferences/self-improve.mdreferences/examples.md — worked example runsreferences/run-stats.md — run-stats footer contract (shape, fields, unavailable marker)references/review-contract.md — report statuses, evidence, uncertainty, decision, format rulereferences/merge-strategy-check.md — optional post-write merge-settings checkreferences/docs/config-schema.md — full configuration schemareferences/docs/idd-methodology.md — IDD methodology referencereferences/docs/platform-github.md — GitHub platform driver referencereferences/docs/terminal-style.md — terminal output style contract (symbols, output structure, table/error formats)references/docs/context-threshold.md — context-threshold check contractreferences/scripts/gi-stack-detect.py — language, framework, test-runner, and size detectionRuns once the prerequisites pass, before the Configuration Check, so every later outcome — create, overwrite, merge, cancel, auto-mode cancel, and each BLOCKED stop — has run it. It creates .gitignore when absent, mirrors each legacy .gitissue[/<x>] line as .idd[/<x>], then adds .idd/cache/; a line already present is never added twice. "Present" is a literal match against this repo's own .gitignore (trimmed, one leading / ignored; .idd/ also covers the cache) — never git check-ignore: a global or .git/info/exclude rule must not stand in for the committed one. Run it exactly, with sh, from git rev-parse --show-toplevel:
# idd-gitignore
f=.gitignore; if [ ! -f "$f" ]; then : > "$f" && echo "created $f"; fi
has() { awk -v t="$1" 'function n(s) { gsub(/^[ \t]+|[ \t\r]+$/, "", s); sub(/^\//, "", s); return s }
BEGIN { t = n(t); a = t; if (!sub(/\/$/, "", a)) a = a "/" }
{ l = n($0) } l == t || l == a || (l == ".idd/" && t !~ /^!/) { h = 1 } END { exit !h }' "$f"; }
add() { has "$1" && return 0
[ -s "$f" ] && [ -n "$(tail -c 1 "$f")" ] && printf '\n' >> "$f"
printf '%s\n' "$1" >> "$f" && echo "added $1"; }
m=$(awk '{ gsub(/^[ \t]+|[ \t\r]+$/, "") } /^!?\/?\.gitissue(\/|$)/ { sub(/\.gitissue/, ".idd"); print }' "$f")
printf '%s\n' "$m" | while IFS= read -r x; do [ -z "$x" ] || add "$x"; done
add .idd/cache/
Each created / added line is a change; none means ○ already ignored. Any error output means the write failed: print Could not update .gitignore (references/error-messages.md) and continue — the config result stands. It feeds the .gitignore: report row.
This skill writes the config rather than loading it at start; it reads an existing file only for the context threshold below and the merge path. Check if .idd.yml already exists in the repo root before proceeding. Capture the run clock in that same check: chain the first shell as …; ec=$?; date +%s >&2; exit "$ec" and keep the stderr epoch as run_started_epoch — the check's exit stays intact, it costs no extra round trip, and it is what the Run Stats Footer (references/run-stats.md) measures elapsed from.
Context threshold. Only when compaction.enabled is true (references/docs/context-threshold.md). This skill loads no config, so read compaction.enabled (default true) and compaction.threshold.init-idd (default 40) from an existing .idd.yml when there is one, else use those defaults. Once, right after this check, compare the remaining-context figure the host placed in your context (none: skip silently, never estimate) with that threshold. At or below it, print the ⚠ line and a /compact <focus> line (skill and step only), then continue — no pause; auto mode prints only the ⚠ line.
When the file is missing (and no legacy .gitissue.yml stands in for it — Legacy names), create it without prompting, including when another skill invokes this one non-interactively.
○ No .idd.yml found — generating config...
Proceed directly to Step 1 — Scan Repository.
A legacy .gitissue.yml with no .idd.yml beside it is the existing config — never create a fresh file over it. Take File exists below with it as that file (the prompt names .gitissue.yml): merge reads it (every key kept, security: included) and writes .idd.yml; overwrite writes .idd.yml; after either, tell the user to git rm .gitissue.yml. Auto mode takes cancel: the legacy file stays untouched, no .idd.yml is written, and it prints ⚠ legacy .gitissue.yml found — rename to .idd.yml (git mv .gitissue.yml .idd.yml). When both exist, .idd.yml is the existing config. A legacy .gitissue/ directory prints ○ legacy .gitissue/ found — move or delete its machine-local files: and, on its own line, https://github.com/luongnv89/idd/blob/main/docs/migrating-from-gitissue.md
If the file already exists, first run Validate the written config on it — a failure prints only ⚠ existing config fails validation — overwrite repairs it — then show the prompt from references/error-messages.md:
⚠ .idd.yml already exists
Options:
overwrite — replace with new auto-detected config
merge — keep existing values, add new fields
cancel — do nothing
Choose: [overwrite/merge/cancel]
references/error-messages.md), leave it untouched, and stop with Result: BLOCKED. Otherwise preserve every user-set value and add only the schema fields it lacks.Result: CANCELLED.--auto or IDD_AUTO_MODE=1) — do not prompt. Print ⚠ Auto mode: overwrite/merge/cancel prompt skipped — kept the existing .idd.yml (cancel). and take cancel, the safe default (the Ignore Rule still ran).Detect project characteristics by checking for specific files and directories.
That is file-existence and dependency-name lookup, not reasoning, so run
references/scripts/gi-stack-detect.py from the repo root (resolve the script path
relative to this SKILL.md exactly as the Bundled dependency precheck resolves
its list):
python3 references/scripts/gi-stack-detect.py --root .
Exit 0 prints one JSON object: language, framework, test_runner (each with
its _source file), repo_size, file_count, file_count_source,
issue_templates, a derived block carrying the Step 2 values
(auto_test, test_timeout, stale_threshold_days), unresolved, and the
recipe block that Starter recipe reads.
unresolved is the LLM fallback trigger, and the only one. It names the
fields nothing in the table matched. A null there is a real answer ("no marker
file is present"), not a failure — the script never guesses. For each field it
names, and only those, work it out yourself from the tables below; leave every
resolved field exactly as the script reported it. file_count_source says
whether the count came from git ls-files or a filesystem walk; report the
count as given rather than re-deriving it.
Classify every outcome:
| Outcome | Meaning | Do |
|---|---|---|
| exit 0 | detected | use the output; resolve unresolved fields from the tables below |
| exit 3 | invalid input — a bad --root or --rules file | stop; print the error from references/error-messages.md (Stack detection failed). Never degrade past exit 3 |
| script file absent | broken install, not a runtime problem | stop with the ✗ Missing bundled dependency block above |
no python3, exit 2, exit 4, unparsable stdout | environment problem | print ⚠ gi-stack-detect unavailable — detecting inline and run the whole of the tables below by hand |
Pass --rules FILE to replace a built-in table for a repository the defaults do
not describe — a JSON object of {"language": [[glob, name]], "framework": [[dependency, name]], "test_runner": [[kind, pattern, name]]}, where each key
replaces the matching table outright.
Check for these files anywhere in the repository:
| File | Language |
|---|---|
package.json | JavaScript, or TypeScript when the file mentions typescript anywhere |
requirements.txt, pyproject.toml, setup.py, Pipfile | Python |
go.mod | Go |
Cargo.toml | Rust |
pom.xml, build.gradle, build.gradle.kts | Java |
Gemfile | Ruby |
*.csproj, *.sln | C# |
If several language markers exist, use the shallowest one; at equal depth, the row that comes first in this table. If none is detected, use empty state.
Parse dependency files to identify frameworks. Test the rows in order and take the first match: next and nuxt come before react and vue because every Next.js or Nuxt project also depends on those.
| Dependency name | Framework |
|---|---|
next | Next.js |
nuxt | Nuxt.js |
angular, @angular/core | Angular |
react, react-dom | React |
vue | Vue.js |
express | Express |
fastify | Fastify |
django | Django |
fastapi | FastAPI |
flask | Flask |
rails, railties | Rails |
spring-boot, spring-core | Spring |
gin-gonic/gin | Gin |
actix-web | Actix |
ASP.NET, Microsoft.AspNetCore | ASP.NET |
Check package.json dependencies/devDependencies, requirements.txt lines, pyproject.toml dependencies, Gemfile gems, go.mod require blocks, Cargo.toml dependencies, pom.xml/build.gradle dependencies.
If no framework is detected, print the ○ skip Framework row (not an error).
Look for these files and patterns:
| Marker | Test runner |
|---|---|
jest.config.js, jest.config.ts, jest.config.mjs, "jest" in package.json | Jest |
vitest.config.js, vitest.config.ts, "vitest" in package.json | Vitest |
.mocharc.yml, .mocharc.js, "mocha" in package.json | Mocha |
karma.conf.js | Karma |
pytest.ini, pyproject.toml with [tool.pytest], setup.cfg with [tool:pytest], conftest.py | pytest |
unittest imports in test files | unittest |
_test.go files | Go test |
#[cfg(test)] in .rs files | Cargo test |
src/test/ directory (Java) | JUnit |
spec/ directory with Gemfile containing rspec | RSpec |
*.test.js, *.spec.js, *.test.ts, *.spec.ts files | (infer from config) |
If no test runner detected, use empty state.
Check for .github/ISSUE_TEMPLATE/ directory. If it exists, count the number of template files inside.
Count files in the repository (excluding .git/, node_modules/, vendor/, __pycache__/, .venv/, venv/, dist/, build/, .next/, target/):
| Count | Size |
|---|---|
| < 100 | small |
| 100 – 999 | medium |
| 1000 or more | large |
Use git ls-files for an efficient count (only tracked files), or fall back to a find command excluding common vendor directories.
The script's derived block already carries these three values; the tables
below are what it computed them from, and what to apply by hand when Step 1
degraded. Everything else is customized from the base schema (see
references/docs/config-schema.md):
resolve.test_timeout)| Repo size | Timeout |
|---|---|
| small | 60 |
| medium | 300 |
| large | 600 |
resolve.auto_test)truefalsetriage.stale_threshold_days)| Repo size | Threshold |
|---|---|
| small | 7 |
| medium | 14 |
| large | 30 |
Add inline # comments in the generated YAML when a framework is detected:
resolve.test_timeout may need increase for E2E testsThese are comments only — they do not change default values.
Write .idd.yml to the repo root. The file must include:
references/docs/config-schema.md)# comments explaining each setting.github/ISSUE_TEMPLATE/, this comment above template:: # Note: .github/ISSUE_TEMPLATE/ found ({N} templates)
# Set template to ".github/ISSUE_TEMPLATE" to use your existing templates
template: default
Use the canonical template at templates/idd-template.yml — it contains every field from references/docs/config-schema.md with inline comments. At write time, substitute the placeholder tokens ({language}, {framework}, {test_runner}, {repo_size}, {file_count}, {true_or_false}, {timeout_value}, {stale_value}) with the Step 1 detection results and the Step 2 defaults. Read templates/idd-template.yml to see the exact field layout.
In merge mode, write the existing file's values plus the missing fields, per the File exists rules.
If the file write fails, output the error from references/error-messages.md and stop:
✗ Could not write .idd.yml
To fix: check file permissions in the repo root
Check: do you have write access? ls -la .
A write that succeeded is not a config that works. Before reporting success, re-read the file just written and verify three things:
python3 -c "import yaml,sys; yaml.safe_load(open('.idd.yml'))" — or, when PyYAML is unavailable, ruby -ryaml -e "YAML.load_file('.idd.yml')". If neither parser is available, print ○ Config validation skipped — no YAML parser available and treat the validation check as PARTIAL, never PASS.grep -nE '\{(language|framework|test_runner|repo_size|file_count|true_or_false|timeout_value|stale_value)\}' .idd.yml must return nothing. Any hit means Step 3 substitution missed a token.platform key is present — it is the driver selector every skill resolves on load, so a config without it is unusable.On a parse error, a surviving placeholder, or a missing platform key, do not
report success. Print the matching error from references/error-messages.md (Generated config failed
validation), leave the file in place for inspection, and stop with Result: BLOCKED.
After a validated write, run the two read-only repository-settings reads in
references/merge-strategy-check.md. That file defines when the check is
skipped, how review.merge_method is judged, and the Merge settings: report
row. The check never changes a repository setting and never changes Result.
After a validated write, read Step 1's recipe (absent after an inline
detect). When starter is non-null, print it as a fenced json block, then:
○ Review this starter, then commit it to {default_branch} as .idd-recipe.json.
Skills read a recipe from the base ref only.
Print it, never write it (When to Use). A set skip (a recipe, or the
legacy .gitissue-recipe.json, already on the base ref; no root entry point;
no default branch) prints nothing. The Recipe: row is in
references/review-contract.md; it never changes Result.
Print the report below. references/review-contract.md defines each Result
status (DONE, PARTIAL, BLOCKED, CANCELLED) and what the Evidence,
Uncertainty, Decision, and Next action rows must carry. Print ✓ only for
a check that ran and passed.
Then the run-stats footer. Close with the Run Stats Footer — references/run-stats.md — elapsed, tokens only where the host reported a count (otherwise left out), agents, run cost only, n/a for anything else undetermined. It is the last thing printed at every terminal outcome, including a run that wrote no config — a failed prerequisite, a declined overwrite, or a scan that could not complete. This skill spawns no subagents, so agents 0 is the determined value here, not n/a.
◆ Init IDD — setup complete
┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄
Result: DONE — .idd.yml generated and validated
Git repo: ✓ pass
Language: ✓ {language} (from {file})
Framework: ✓ {framework} (from {file})
Test runner: ✓ {test_runner} (from {file})
Templates: ✓ {template_status}
Repo size: ✓ {size} ({count} files, via {file_count_source})
Config: ✓ generated .idd.yml
Validation: ✓ parses as YAML, no placeholders left, platform set
Merge settings: ✓ squash allowed
Recipe: ✓ starter printed (capabilities: {n})
.gitignore: ✓ added .idd/cache/
┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄
Evidence: gi-stack-detect exit 0; re-read with {parser}
Uncertainty: values from marker files; no test command run
Decision: No approval needed.
Config: .idd.yml
Next action: review and commit .idd.yml, then /issue-creator
No framework detected — show:
Framework: ○ skip (not detected)
No language detected — show:
Language: ⚠ warn (unknown — using generic defaults)
And earlier in the flow, print:
○ Could not detect project language. Using generic defaults.
Tip: add a package.json, requirements.txt, or go.mod to help detection.
No test runner detected — show:
Test runner: ⚠ warn (none — auto_test disabled)
And earlier in the flow, print:
○ Could not detect test runner. Setting resolve.auto_test: false.
Tip: configure your test command in .idd.yml after setup.
Validation could not run — no YAML parser available; show:
Validation: ⚠ warn (skipped — no YAML parser available)
and set Result: PARTIAL — config written; parse check skipped.
No issue templates — show:
Templates: ○ skip (none found)
Existing issue templates — show:
Templates: ✓ .github/ISSUE_TEMPLATE/ ({N} templates)
Merge mode — change Config line:
Config: ✓ merged into existing .idd.yml ({N} new, {M} preserved)
Overwrite mode — change Config line:
Config: ✓ replaced .idd.yml with new config
Ignore rule — ○ already ignored when nothing was added; ⚠ warn (write failed) after Could not update .gitignore.
Optional, propose-only. With no user present to approve (a subagent, unattended, or test run), skip it: print nothing, open nothing. Otherwise, once the result is delivered, follow references/self-improve.md. Examples of a lasting mismatch here:
.idd.yml comments or layout.python3, a YAML parser, or a stack marker the scan assumed was missing or different, and a workaround worked.resolve.test_timeout) right after the write.Full example outputs live in references/examples.md — read that file when debugging detection or merge behavior.
Terminal output follows the references/docs/terminal-style.md contract — symbols ● ✓ ✗ ◆ ⚡ ⚠ ○, two-space indent, ┄ separators, URLs on their own line, ≤80 chars, one blank line between sections, static sequential output (no animation). Errors use the rich format from references/error-messages.md: ✗ what failed, then To fix: <command>, then a docs link when applicable.
After a successful run the repo root contains a validated .idd.yml, a
.gitignore that ignores .idd/cache/, and the terminal prints the Step 4 —
Report block above — the Validation: row is the checkable bar: the run only reports DONE after the written file parsed as YAML
with no placeholder tokens left and a platform key. Variations (merge mode,
missing framework, missing test runner) are listed under that step.
.gitissue.yml) — interactive runs show an overwrite / merge / cancel prompt; auto mode skips it, takes cancel, and prints the ⚠ Auto mode: line. Neither prints a diff of detected vs current values, and neither skips the Ignore Rule.⚠ warn variant.references/error-messages.md and stops; no file is written.⚠ warn variants.references/error-messages.md — Complete error catalog with triggers and exact outputreferences/docs/config-schema.md — Full configuration schema that this skill generatesreferences/docs/terminal-style.md — Terminal output style contractLICENSE (opens in a new tab)docs/README.md (opens in a new tab)references/docs/config-schema.md (opens in a new tab)references/docs/context-threshold.md (opens in a new tab)references/docs/idd-methodology.md (opens in a new tab)references/docs/platform-github.md (opens in a new tab)references/docs/terminal-style.md (opens in a new tab)references/error-messages.md (opens in a new tab)references/examples.md (opens in a new tab)references/merge-strategy-check.md (opens in a new tab)references/review-contract.md (opens in a new tab)references/run-stats.md (opens in a new tab)references/scripts/gi-stack-detect.py (opens in a new tab)references/self-improve.md (opens in a new tab)templates/idd-template.yml (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub luongnv89/idd --plugin idd8 skills in this plugin
/auto-pilotRun an autonomous triage-resolve-review-merge loop to auto-pilot the GitHub issue backlog, working through eligible issues until none remain or a stop condition fires, with no routine prompts. Don't use for single-issue work (/issue-resolver), triage (/issue-triage), or PR review (/issue-pr-review)./issue-analysisAnalyze one GitHub issue for root cause, complexity, and risk into .idd/analysis-N.json. Use when you need to analyze or scope issue #N. Don't use for creating issues (/issue-creator), triaging (/issue-triage), or resolving (/issue-resolver)./issue-creatorCreate structured GitHub issues from text, screenshots, or lists, with acceptance criteria and preserved reporter context. Use for filing bugs/features, batch creation, or template cleanup. Don't use for resolving, triaging, or deep issue analysis./issue-pr-reviewReview a PR end-to-end with CI checks, fix cycles, and optional auto-merge. Use for PR review, cleanup, or readiness checks. Don't use for creating PRs, raw issue analysis, or non-PR code review./issue-resolverCreate an atomic PR closing a GitHub issue end-to-end via a 6-step pipeline. Use to resolve, fix, or implement issue #N. Don't use for analysis without fixing (/issue-analysis), reviewing a PR (/issue-pr-review), or bulk backlog work (/auto-pilot)./issue-triageScan open GitHub issues for dependencies, priority, parallel work, and staleness. Use to prioritize the backlog or pick what to do next. Don't use for one-issue analysis (/issue-analysis), resolving (/issue-resolver), or creating (/issue-creator).Other plugins' skills for the same job