agentwikis-router
Route developer tasks against AgentWikis knowledge bases, evaluate declared scope boundaries, extract offline docs, and dispatch skills. Do not use for generic web scraping or non-technical chat.
- License 许可
- MIT
- 最近更新
- 2026-11-15
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- agentwikis-router
- description
- Route developer tasks against AgentWikis knowledge bases, evaluate declared scope boundaries, extract offline docs, and dispatch skills. Do not use for generic web scraping or non-technical chat.
02 资源文件 7
- 参考文档CARD.md5.4 KB
- 参考文档config.default.yaml795 B
- 参考文档contracts/agentwikis_contract.yaml3.1 KB
- 参考文档resources/eval_matrix_agentwikis.json3.5 KB
- 脚本scripts/agentwikis_cli.py14.3 KB
- 脚本scripts/agentwikis_engine.py53.6 KB
- 脚本scripts/run_eval_suite.py14.2 KB
03 SKILL.md 正文
AgentWikis Router & Knowledge Distiller
agentwikis-router operationalizes https://agentwikis.com/for-agents and the local AgentWikis corpus (10.2 MB across 62 curated wikis and 25 specialized skills) as an authoritative, structured knowledge and skill-routing substrate.
Guided by the Data-to-Value Lifecycle Continuum and Hybrid Data Topology (Graph of Trees with Hash-Indexed Extraction Queue), this skill provides zero-latency documentation slices, trust-calibrated abstention, and contract-first governance.
See CARD.md for the companion quick-reference card, 5-stage reference matrix, and quality checklist. See config.default.yaml for zero-fork operational budgets, quality thresholds, and timeout parameters. See contracts/agentwikis_contract.yaml for the machine-readable Open Data Contract (ODCS).
The 5-Stage Operational Progression
[1. Scope & Trust Triage] ──► [2. Contracted Medallion Pipeline] ──► [3. Visual Brief & Topology Review]
│
▼
[5. Slice Retrieval & Dispatch] ◄── [4. 6-Dimension Quality Gating] ◄──────────┘
Stage 1: Scope & Trust Triage (Intent Mapping)
Before fetching or reading documentation, evaluate whether the user query aligns with declared wiki boundaries:
- Evaluate Intent & Boundary Fit:
- Execute
match-skillto match the user task against the 62 wikis and 25 curated skills:python .agents/skills/agentwikis-router/scripts/agentwikis_cli.py match-skill "<task_prompt>" --limit 3 --output match.json
- Execute
- Inspect Trust Semantics & Calibrated Abstention:
- Inspect
match.jsonforin_scopeandcalibrated_confident:- If
in_scope: trueandcalibrated_confident: true: Proceed to Stage 2. - If
in_scope: falseorcalibrated_confident: false: Abstain immediately (~94% correct abstention rate) and fall back to live web search (search_web), adhering to the AgentWikis trust contract.
- If
- Inspect
- Verify Version Freshness:
- Inspect
scope.currentAsto confirm the documented software version matches the user's environment:python .agents/skills/agentwikis-router/scripts/agentwikis_cli.py scope <wiki_slug> --output scope.json
- Inspect
Completion gate:
Scope verified and confidence calibrated(in_scope: true, calibrated confidence confirmed, negative boundary check passed).
Stage 2: Contract-First Ingestion & Medallion Lakehouse
Transform raw documentation feeds into typed, governed analytical assets through contract-first lakehouse engineering:
- Assert Open Data Contract Compliance (ODCS):
- Validate incoming corpus metadata against
contracts/agentwikis_contract.yaml:python .agents/skills/agentwikis-router/scripts/agentwikis_cli.py validate-contract --output contract_report.json - Enforce schema conformity across wikis, scope objects, and skill records.
- Validate incoming corpus metadata against
- Traverse Medallion Lakehouse Tiers:
- Bronze Layer (Raw Ingestion): Immutable full-text dump (
llms-full.txt) and raw Markdown endpoints with source isnad metadata (_ingested_at,_source_url). - Silver Layer (Cleansed & Slotted): Normalized, strongly-typed slotted entities (
WikiEntity,WikiScope,SkillEntity) enforcingRule 12(slots=True, frozen=True). - Gold Layer (Curated Agent Marts): Topic-sliced Markdown chunks, inverted search indices, and graph-ready routing bridges.
- Bronze Layer (Raw Ingestion): Immutable full-text dump (
Completion gate:
Open Data Contract validated(validate-contractreturns compliant status with zero schema violations).
Stage 3: Visual Brief & Topology Review
Generate an interactive, self-contained HTML brief in %TEMP% to visually inspect routing topologies before execution:
- Target Location:
- Write to
%TEMP%\agentwikis_routing_brief.html(or project artifact directory).
- Write to
- Render Visual Topology:
- Render the Hybrid Data Topology DAG via Mermaid.js:
- 62 wikis interconnected across 7 categorical domains (Agents, DevTools, Inference, ImageGen, Blockchain, Trading, Marketing).
- Individual wikis decomposed into hierarchical document trees (
wiki/index.md→concepts/,summaries/,entities/). - $O(1)$ Hash Map direct lookup and priority triage extraction queues.
- Embed an Interactive Blast Radius Matrix listing affected document slices and token estimates.
- Render the Hybrid Data Topology DAG via Mermaid.js:
- Delivery: Surface clickable
file:///link to the user.
Completion gate:
Visual Brief rendered(self-contained HTML brief generated in%TEMP%and delivered to user).
Stage 4: 6-Dimension Quality Gating & Checkpoint
Eliminate silent documentation drift and hallucinations through comprehensive DAMA-DMBOK data quality profiling:
- Execute 6-Dimension Quality Audit:
- Profile the corpus across all 6 canonical DAMA data quality dimensions:
python .agents/skills/agentwikis-router/scripts/agentwikis_cli.py quality-profile --min-score 85.0 --output quality_scorecard.md - Accuracy: Validate slug syntax and URI structures.
- Completeness: Assert presence of descriptions, categories, and
scope.covers. - Consistency: Verify cross-referenced wikis exist in the registry.
- Timeliness / Freshness: Flag wikis stale by $>24$ months.
- Validity: Validate ISO-8601 timestamps and Markdown delimiter syntax.
- Uniqueness: Assert zero duplicate slugs in the registry.
- Profile the corpus across all 6 canonical DAMA data quality dimensions:
- Mandatory Checkpoint Gate:
- Confirm aggregate quality score $\ge 85.0%$. If failing, pause batch retrieval and quarantine defective records.
Completion gate:
Quality score >= 85.0%(automated 6-dimension quality scorecard passes with zero critical failures).
Stage 5: Zero-Latency Slice Retrieval & Skill Dispatch
Extract targeted documentation sections locally and dispatch execution to specialized agent skills:
- Extract Zero-Latency Local Markdown Slices:
- Extract the target document section via O(1) byte-offset seek from
llms-full.txt(9.77 MB) without network latency:python .agents/skills/agentwikis-router/scripts/agentwikis_cli.py read-doc "<wiki_slug>/<doc_path>" [--section "<heading>"] --output doc_slice.md - Or compile a bounded context pack in a single call:
python .agents/skills/agentwikis-router/scripts/agentwikis_cli.py context-pack "<task_prompt>" --max-tokens 2000 --output context_pack.md - In Harness agent loops, resolve in-memory via micro-kernel IoC:
context.require(AGENTWIKIS_SERVICE_KEY).
- Extract the target document section via O(1) byte-offset seek from
- Dispatch to Specialized Skills:
- If the task matches a local workspace skill (e.g.
pocock-skills,crafting-skills,deepen-architecture), activate the skill to execute the workflow.
- If the task matches a local workspace skill (e.g.
- Emit MCP Server Configuration (Optional):
- Generate client setup configurations for Antigravity, Claude Code, or standard JSON:
python .agents/skills/agentwikis-router/scripts/agentwikis_cli.py mcp-config --client antigravity --output mcp_config.json
- Generate client setup configurations for Antigravity, Claude Code, or standard JSON:
- Cite Provenance:
- Ground model responses with verifiable citations to source wiki paths in the reference footer.
Completion gate:
Documentation slice retrieved and dispatched(targeted markdown written to disk, provenance footer cited).
Trust Semantics & Operational Invariants
- Scope Boundary: Every wiki defines explicit
coversandnotCoveredsets. If out of scope, never guess; escalate to web search. - Calibrated Abstention: When searching,
calibrated_confident: falseindicates the wiki corpus lacks the answer (~94% correct abstention). - File Output Invariant: All CLI commands output results to files, preventing terminal context flooding.
- Relocatable Path Resolution: Corpus paths resolve dynamically via
--corpus-dir,AGENTWIKIS_CORPUS_DIR, orconfig.default.yaml. - Remote Rate Limiting: Remote HTTP queries enforce a 1 req/sec delay with exponential backoff on HTTP 429/5xx.
Anti-Patterns
- Context Flooding Monolith — Dumping multi-megabyte raw corpus files directly into model context instead of extracting targeted sections to disk.
- Passive Data Swamp — Storing and querying documentation files without data contracts, governance rules, or quality metrics.
- Uncontracted Producer Drift — Unilaterally altering Markdown headers or index schemas without machine-readable contract validation.
- Hallucinatory Extrapolation — Guessing answers when a wiki declares the topic under
notCoveredinstead of falling back to web search. - Silent Scope Bypassing — Executing technical commands without verifying the
currentAsversion date against the user's software environment. - Redundant Network Calls — Querying remote endpoints over HTTP when the full text is already available locally.
- Hardcoded Absolute Paths — Hardcoding user-specific machine absolute paths in skill scripts, causing failures in sandboxes and CI runners.
- Unregistered Orphan Skill — Operating a skill without registering it in
CONTEXT-MAP.md, the Knowledge Vault, or graph indexer.
04 同仓库更多 Skills
ui-behavior-primitive-architect
Architect, audit, and verify zero-dependency headless UI behavior primitives, WebMCP agent bridges, WAI-ARIA/SSR/RTL tri-modal checks, and framework expert routing. Do not use for static CSS theme styling or backend database migrations.
trustgraph-ontology-governor
Govern knowledge graphs, SHACL-AF triple policies, OntologyRAG subclass validation, PROV-O dual named graphs, and Laya entropy decision scoring. Do not use for relational SQL queries or generic web scraping.
shim-harness-governor
Govern universal CLI agent loops, 4-tier tool permissions, ancestor-symlink workspace sandboxes, deterministic-first command routing, collision-safe MCP namespacing, and layered skill loading. Do not use for static UI styling or external SQL analytics.
graphiti-zep-memory-governor
Govern bi-temporal knowledge graphs with Graphiti future-edge clamping, MinHash/LSH entity dedup, RRF/MMR reranking, and Zep typed ontologies. Do not use for static SQL joins or generic web crawling.
agora-mcp-workbench-architect
Architect, audit, and orchestrate Agora Workbench MCP servers, loopback sidecars, unified state graphs, gateway/dispatcher connectors, and policy-enforced data lakes. Do not use for static frontend CSS styling or non-MCP desktop GUI automation.
skill-eval-assurance-runner
Evaluate and assure agent skills using small-N Wilson confidence intervals, unbiased pass^k reliability, deterministic trajectory graders, preflight boundary honesty, and sealed digest verification. Do not use for subjective prose review or unconstrained production deployment.