From doc-detective-agent-tools
Validate Doc Detective test specifications or configuration files
npx claudepluginhub joshuarweaver/cascade-code-testing-misc --plugin doc-detective-agent-toolsThis skill uses the workspace's default tool permissions.
**Skill:** `doc-detective:validate`
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.
Skill: doc-detective:validate
Validate Doc Detective test specifications or configuration files to ensure they're correctly structured.
Validate a test specification file or inline JSON:
/doc-detective-validate test-spec.json
/doc-detective-validate
{
"tests": [{
"testId": "login-flow",
"steps": [
{ "goTo": "https://example.com/login" },
{ "click": "Sign In" }
]
}]
}
Validate a configuration file:
/doc-detective-validate --config .doc-detective.json
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 |
|---|---|
| Test spec or config content to validate | Provided as a file path or inline JSON — ask user if missing |
Before completing:
[FIELD]: [ERROR REASON]Validation PASSED or Validation FAILEDRun the validator (try in order; stop and tell the user if none are available):
# Option 1
echo '<spec-json>' | node skills/doc-detective-doc-testing/scripts/doc-detective-validate-test.js --stdin
# Option 2
npx doc-detective validate --input <spec-file>
Only report Validation PASSED when the output confirms no errors. On failure, report each error as [FIELD]: [ERROR REASON].
Test spec checks:
tests array must exist and be non-emptysteps arrayCheck the provided JSON against the doc-detective-common config schema. Report every field that fails as [FIELD]: [ERROR REASON].
Config checks:
input: must be a string or string array of valid glob patterns or file pathsrecursive: must be a booleanoutput: must be a valid directory path stringlogLevel: must be one of silent, error, warning, info, debugbrowser: must be an object (not a string)env: must be an object or .env file path stringdefaultCommandTimeout: must be a number (milliseconds)Valid config:
{ "input": ["docs/**/*.md"] }
Invalid config:
{ "input": "docs/", "browser": "chrome", "logLevel": "verbose" }
Errors: browser must be object, logLevel value invalid.
See doc-detective-common for the full configuration schema.