cdeust/ai-architect-mcp/stage-0-health
Claude Code and agent skill by cdeust/ai-architect-mcp
- community
Checking that the SKILL.md file is still in the repository.
Install
npx vskill@latest install cdeust/ai-architect-mcp/stage-0-healthSKILL.md
Allostatic Priming
You are a systems operator running pre-flight checks. Nothing proceeds until everything is green. You do not interpret results — you verify them. Every dependency, every tool, every skill version must be confirmed available and at the expected version before the pipeline can begin.
Trigger
USE WHEN: health check, pre-flight, validate environment, check dependencies, system ready, tool availability, skill version, dependency validation, startup verification, environment check, system status, ready check NOT FOR: discovery scanning, impact analysis, PRD generation, code implementation, verification, deployment — those are downstream stages
Survival Question
"Is every dependency, tool, and skill version available and correct for this pipeline run?"
Before you start
ai_architect_load_session_state— read PipelineState. If currentStage > 0, this stage was already completed — skip.ai_architect_fs_read(path="{data_dir}/artifacts/skill-version-manifest.json")— load expected skill versions.
Missing session state on first run = expected. Missing skill-version-manifest = BLOCK.
Input contract
| Field | Type | Source | Required | |
|---|---|---|---|---|
skill-version-manifest.json | JSON | {data_dir}/artifacts/ | YES — BLOCK if absent | |
PipelineState | object | ai_architect_load_session_state | NO — first run creates it |
Operations
1. MCP server health check
Verify all tool groups present by calling one tool from each group:
- Verification:
ai_architect_verify_claim(dry run) - Prompting:
ai_architect_select_strategy - Context:
ai_architect_load_context - Scoring:
ai_architect_compound_score - Adapters:
ai_architect_fs_list - Interview:
ai_architect_query_interview_results - Memory:
ai_architect_check_context_budget(total_tokens=200000, used_tokens=0) - HOR:
ai_architect_run_hor_rules(dry run with empty input) - Xcode:
ai_architect_run_build(connectivity check only)
2. Validate skill versions
3. Git and GitHub connectivity
4. Codebase intelligence probe (optional)
Probe for codebase intelligence engine MCP tools (ai_architect_codebase_*). If available, record codebase_intelligence: "ai_codebase_intelligence" in the health report. Downstream stages use the codebase intelligence engine for blast radius, symbol search, and dependency graphs when available. If unavailable, record codebase_intelligence: "filesystem_only" — downstream stages fall back to ai_architect_fs_list + grep patterns.
Available codebase intelligence tools (from codebase-intelligence MCP server):
ai_architect_codebase_list_repos()— list indexed repositoriesai_architect_codebase_query(query, repo="", limit=5, max_symbols=10, include_content=false)— hybrid searchai_architect_codebase_context(name="", uid="", file_path="", include_content=false, repo="")— 360-degree symbol viewai_architect_codebase_impact(target, direction="upstream", maxDepth=3, repo="")— blast radius analysisai_architect_codebase_cypher(query, repo="")— raw Cypher queriesai_architect_codebase_detect_changes(repo="", scope="unstaged", base_ref="")— git diff to affected symbols
Git analytics tools (science-backed, from codebase-intelligence MCP server):
ai_architect_codebase_ownership(path, repo="")— per-file ownership ratio and minor contributors (Bird et al. 2011, "Don't Touch My Code!")ai_architect_codebase_bus_factor(path, repo="")— knowledge concentration risk per module (Avelino et al. 2016, "A Novel Approach for Estimating Truck Factors")ai_architect_codebase_churn(path, repo="")— relative code churn: additions, deletions, churn ratio (Nagappan & Ball 2005, "Use of Relative Code Churn Measures to Predict System Defect Density")ai_architect_codebase_cochange(path, repo="")— co-change frequency detecting hidden temporal coupling (Gall et al. 1998, "Detection of Logical Coupling Based on Product Release History")ai_architect_codebase_dead_code(path, repo="")— unreachable code candidates via call graph analysis (Grove et al. 1997, "Call Graph Construction in Object-Oriented Languages")
Probe each git analytics tool with a known path. If any responds: record git_analytics: "available" in the health report. If all fail or timeout: record git_analytics: "unavailable" — downstream stages skip analytics enrichment.
5. Foundation Models reachability (optional)
Foundation Models availability is checked but not blocking. Pipeline continues if Foundation Models is offline — Apple Intelligence features degrade gracefully.
6. Write health report
7. Update pipeline state
OODA Checkpoint
Emit one OODA checkpoint per verification point. Each call uses the real tool signature:
- [ ] All MCP tool groups reachable?
- [ ] All skill versions match manifest?
- [ ] Git operational?
- [ ] GitHub authenticated?
- [ ] Health report written to StageContext?
- [ ] No scope bleed into adjacent stage?
Expected output
| Artifact | Location | Schema | |
|---|---|---|---|
stage-0-health-report.json | {data_dir}/artifacts/ | {mcp_server, tool_groups, skill_versions, git, github, foundation_models, git_analytics, timestamp} | |
| StageContext[stage-0] | ai_architect_save_context | Same as report | |
| PipelineState update | ai_architect_save_session_state | {currentStage: 1} |
Stop criteria
- Pass: All mandatory checks green. Health report written. PipelineState.currentStage = 1.
- Retry: Not applicable — health check is binary. If it fails, fix the environment, do not retry the check.
- Escalate: Any mandatory check fails (MCP unreachable, skill version mismatch, git unavailable). Report which check failed and what to fix.
Effort level: LOW
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/stage-0-health/SKILL.md
Popularity
- Repository stars
- 1
- 7-day trend score
- 3
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/cdeust/ai-architect-mcp/stage-0-health)