From doc-detective-agent-tools
Initialize Doc Detective in a repository by detecting documentation, generating minimal config, creating tests for procedures, and iteratively running/fixing them. Use when (1) setting up Doc Detective in a new project, (2) user asks to "init" or "bootstrap" doc testing, (3) creating initial test coverage for existing documentation, or (4) onboarding a project to Doc Detective workflows.
npx claudepluginhub joshuarweaver/cascade-code-testing-misc --plugin doc-detective-agent-toolsThis skill uses the workspace's default tool permissions.
Bootstrap Doc Detective in a repository: detect docs, generate minimal config, create tests, run them, fix failures, and inject passing tests into source files.
Creates new Angular apps using Angular CLI with flags for routing, SSR, SCSS, prefixes, and AI config. Follows best practices for modern TypeScript/Angular development. Use when starting Angular projects.
Generates Angular code and provides architectural guidance for projects, components, services, reactivity with signals, forms, dependency injection, routing, SSR, ARIA accessibility, animations, Tailwind styling, testing, and CLI tooling.
Executes ctx7 CLI to fetch up-to-date library documentation, manage AI coding skills (install/search/generate/remove/suggest), and configure Context7 MCP. Useful for current API refs, skill handling, or agent setup.
Bootstrap Doc Detective in a repository: detect docs, generate minimal config, create tests, run them, fix failures, and inject passing tests into source files.
Use when the user wants to set up Doc Detective, mentions "init", "bootstrap", or "get started with Doc Detective", or asks to create initial test coverage for documentation.
| Option | Default | Description |
|---|---|---|
--ci | false | No prompts; use sensible defaults |
--dry-run | false | Print planned changes without applying |
--fix-threshold <0-100> | 80 | Ask user when fix confidence is below this value |
--auto-fix | false | Apply all fixes regardless of confidence |
--skip-inject | false | Skip Phase 6 injection |
--inject-all | false | Inject without per-file confirmation |
Confirm all of the following before starting. If any item is unavailable or non-discoverable, stop and ask the user to provide it.
| Criteria | How to find it |
|---|---|
| Repository root is accessible | Check working directory — ask user if unclear |
| Documentation files exist | Search for **/*.md, **/*.mdx, **/*.adoc, **/*.rst, **/*.html, **/*.dita — ask user if none found |
| Existing config (if present) is readable | Check for .doc-detective.json / doc-detective.config.js — ask user if file exists but can't be parsed |
Before completing:
--dry-run)--skip-inject or --ci without --inject-all)Phases run in order. Do NOT advance to the next phase if the current phase fails.
**/*.md, **/*.mdx, **/*.adoc, **/*.rst, **/*.html, **/*.dita.doc-detective.json, doc-detective.config.jsGenerate .doc-detective.json following the "smallest reasonable config" principle.
If no config exists, create silently with minimal defaults. If a config exists: read it, merge new fields, show a diff, and prompt the user to confirm. If the user rejects the merge, stop and report — do not proceed.
{ "input": ["docs/**/*.md"], "output": ".doc-detective/results" }
For each procedure-heavy file identified in Phase 1:
doc-testing skill to generate a test spec: use the file as input, write output to .doc-detective/doc-detective-tests/<name>-spec.json where <name> is the source filename lowercased with non-alphanumeric characters replaced by hyphens._sourceFile field) to support Phase 6 injection.Run all generated specs (try global CLI, then Docker, then npx — same fallback chain as the doc-testing skill):
doc-detective --input .doc-detective/doc-detective-tests/ --output .doc-detective/results/
If no runner is available, stop and inform the user. After execution, collect all failing tests from testResults-<timestamp>.json.
Skip this phase if no tests failed. For each failing test, repeat up to 3 times:
resultDescription to identify the failure.Report all "needs manual review" tests before completing.
Skip this phase if --skip-inject is set, or if --ci is set without --inject-all.
For each source file with passing tests:
inline-test-injection skill (no --apply flag).--apply mode.The injection tool selects the correct comment format automatically.
Condition: Only run if the project is an initialized GitHub repository (.git exists as a file or directory, and a remote URL references github.com). Skip this phase silently otherwise.
--ci mode, ask the user if they want to set up the Doc Detective GitHub Action for CI. If the user declines, skip this phase.--ci mode, default to yes — proceed without prompting./doc-detective-install-github-action with matching flags:
--ci if bootstrap was called with --ci.--exit-on-fail:
--ci mode, pass --exit-on-fail by default.