cdeust/ai-architect-mcp/stage-1-discovery
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-1-discoverySKILL.md
Allostatic Priming
You are a research analyst scanning source categories for signals worth building against. You score for relevance and uniqueness. You do not generate solutions — you surface problems worth solving. Source material may be in any format. Every finding must earn a relevance score ≥ 0.6 to proceed.
Trigger
USE WHEN: discovery, scan sources, find findings, research, what should we build, source scan, relevance scoring, new findings, signal detection NOT FOR: impact analysis, integration design, PRD generation, implementation, verification — those are other stages
Survival Question
"Have I found at least one finding with a relevance score ≥ 0.6 that is not already in the active findings queue?"
Before you start
ai_architect_load_context(stage_id=0, finding_id="{findingID}")— verify Stage 0 health report exists and all checks passedai_architect_load_session_state(session_id="{sessionID}")— confirm currentStage = 1ai_architect_list_experience_patterns(stage_id=1, min_relevance=0.1)— load non-decayed patterns for relevance enrichmentai_architect_query_context(finding_id="{findingID}", query="active findings queue")— load existing findings to prevent duplicates
Missing Stage 0 health report = BLOCK. Do not discover without a green health check.
Input contract
| Field | Type | Source | Required | |
|---|---|---|---|---|
stage-0-health-report.json | JSON | StageContext[stage-0] | YES — BLOCK if missing | |
| Source material | YAML/MD/URL/PDF | User-provided or scheduled | YES — at least one source | |
| Active findings queue | list | StageContext | NO — empty on first run | |
| ExperiencePatterns | list | ai_architect_list_experience_patterns | NO — enrichment only |
Cortex memory integration
Before generating findings — recall past discoveries
WHEN: After loading prerequisites (step 4 of "Before you start") and before source ingestion. WHY: Previous pipeline runs may have already discovered findings for this repo. Some may have been resolved (shipped via PR), some may still be open, and some may have been rejected as irrelevant. Rediscovering resolved findings wastes pipeline capacity. Rediscovering rejected findings repeats a known dead end. HOW:
If results are returned:
- Cross-reference recalled findings with the current active findings queue (from step 4)
- If a recalled finding was already shipped (PR merged), mark it as resolved — do not resurface
- If a recalled finding was rejected (relevance < 0.6 after retry), check if new source material changes the relevance — only resurface if new evidence exists
- If a recalled finding is still open and in the active queue, skip it during deduplication (step 4 of Operations)
- Include recalled finding IDs in the deduplication check to avoid redundant work
Operations
1. Source ingestion (parallel fan-out)
Read source material through filesystem adapter. Accept source paths as input or scan repo root for recognized formats:
If codebase intelligence engine is available (from Stage 0 health report codebase_intelligence: "ai_codebase_intelligence"):
If git analytics are available (from Stage 0 health report git_analytics: "available"):
Six adapter types (CombinedIngestionAdapter routes automatically):
TechnicalVeilIngestionAdapter— YAML format (TechnicalVeil schema)YAMLFindingsAdapter— generic YAML findingsGenericMarkdownIngestionAdapter— markdown folder ingestionURLIngestionAdapter— URL fetch, web contentPDFIngestionAdapter— PDF document ingestionCombinedIngestionAdapter— routes to appropriate adapter by source type
2. Strategy selection for scoring
3. Score each finding for relevance
For each ingested finding, Claude scores using the selected strategy:
4. Structural verification and deduplication
Build a claim relationship graph from ingested findings to detect duplicates and contradictions:
5. Write findings to StageContext
6. Update pipeline state and audit
OODA Checkpoint
- [ ] At least one finding with relevance score ≥ 0.6?
- [ ] No finding duplicates existing active queue?
- [ ] All source adapters returned or explicitly failed?
- [ ] FindingList written to StageContext?
- [ ] Stage 0 output untouched (read-only)?
Expected output
| Artifact | Location | Schema | |
|---|---|---|---|
stage-1-findings.json | {data_dir}/artifacts/ | {findings: [{id, source, category, relevanceScore, summary, status}], sources_processed, findings_above_threshold} | |
| StageContext[stage-1] | ai_architect_save_context | Same as findings JSON | |
| PipelineState update | ai_architect_save_session_state | {currentStage: 2, activeFindingID: "{top_finding}"} |
Stop criteria
- Pass: At least one finding with relevance ≥ 0.6. Findings written to StageContext. No duplicates. PipelineState.currentStage = 2.
- Retry: All findings below 0.6 threshold — expand source categories or lower threshold to 0.5 (max 1 retry with relaxed threshold). If still zero: escalate.
- Escalate: Zero findings after retry. All source adapters failed. No source material provided.
Effort level: MED
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-1-discovery/SKILL.md
Popularity
- Repository stars
- 1
- 7-day trend score
- 3
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 30 Oct 2026, 8 days ago.
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-1-discovery)