agent-loop-ext
Crash-resilient external agent loop with state persistence and CI/CD integration
Run a development-focused health check on the AIWG repository structure
$ npx -y skills add jmagly/aiwg --skill dev-doctor --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/dev-doctorContext preview
The summary Claude sees to decide when to auto-load this skill.
Run a development-focused health check on the AIWG repository structure
namespace: aiwg name: dev-doctor description: Run a development-focused health check on the AIWG repository structure platforms: [all]
You run a comprehensive development-environment health check on the AIWG repository, checking structural integrity across all addons and frameworks, catching orphaned and misplaced components, and validating TypeScript compilation and test coverage gates. You produce a structured health report with pass/fail per check and actionable remediation steps for every failure.
| Pattern | Example | Action | |---------|---------|--------| | Full check | "run dev doctor" | All sections | | Placement focus | "placement violations?" | Placement check only | | Orphan focus | "find orphaned skills" | Orphan detection only | | Pre-commit | "pre-commit health check" | Full check | | TypeScript | "does TypeScript compile" | Compilation check only | | Quick | "dev health" | Full check, condensed output |
Run the following checks in sequence. Collect all results before generating the report.
1. Read `agentic/code/addons/` — list all addon directories 2. For each addon directory:
3. Read `agentic/code/frameworks/` — list all framework directories 4. For each framework directory:
For each addon and framework:
**Orphaned skills** (SKILL.md exists but not in manifest):
**Missing skills** (in manifest but SKILL.md absent):
Repeat the same orphan/missing check for agents and rules.
For each provider directory that exists in the repository:
For each file found in a provider directory:
All `@file` references in distributable skills and agents are checked against the full linking contract. Three categories of violations are reported:
**Step 1**: Build the Tier 2 normalized allowlist from installed manifests:
**Step 2**: Scan for `.aiwg/` violations (Section 4a):
grep -rn "@\.aiwg/" agentic/code/ --include="*.md"
For each ref found: check against allowlist.
**Step 3**: Scan for bare AIWG-core refs (Section 4b — legacy migration):
Use Grep tool to search for bare AIWG-core ref patterns — refs to `agentic/code/`, `src/`, `docs/`, `tools/` that lack the `$AIWG_ROOT/` token prefix — in `agentic/code/` markdown files. Each match → WARN: legacy bare ref, needs `$AIWG_ROOT/` prefix.
**Note**: No backtick or code-block escaping exists — any `@<path>` pattern in deployed skills is processed as a file reference regardless of surrounding markup.
**Step 4**: Scan for forbidden deployment-target refs (Section 4c):
Use Grep tool to search for `@.claude/` in `agentic/code/` markdown files. Each match → FAIL: deployment target ref, forbidden in distributable source.
**Report format**:
SECTION 4 — @file Reference Check
4a — .aiwg/ References
PASS sdlc-complete/agents/requirements-analyst.md .aiwg/requirements/ (normalized)
FAIL my-addon/skills/my-skill.md .aiwg/planning/my-design.md
→ non-normalized path: only exists in AIWG dev repo
4b — Bare AIWG-core References (legacy)
WARN research-complete/agents/workflow-agent.md agentic/code/frameworks/research-complete/...
→ add $AIWG_ROOT/ prefix
4c — Deployment-Target References (forbidden)
(none)Run TypeScript type checking:
npx tsc --noEmit
Run the test suite:
npm test
Do not run UAT (`npm run uat`) here — that is a pre-release gate, not a daily development check. Mention that it should be run before tagging a release.
Search all `SKILL.md` files in `agentic/code/` for potential circular calls:
For each `SKILL.md`: 1. Check if the associated command in `definitions.ts` has `executedViaSkillRunner: true` 2. If yes: search the SKILL.md for `aiwg <command-name>
Reusable project context and specialist workflows for the AI tools you already use. Plan software, coordinate specialist reviews, prepare campaigns, investigate incidents, organize research, curate media, and maintain operational knowledge.
Repo: jmagly/aiwg
Crash-resilient external agent loop with state persistence and CI/CD integration
Detect requests for iterative autonomous agent loops and route to the appropriate loop executor
Automatically execute tests when code-generating agents modify source files, enforcing the execute-before-return pattern
Enable agent loops to learn from similar past tasks and share patterns across loops
Query and manage the executable feedback debug memory
Execute tests on generated code and iterate until passing