external-repo-bridge-forge
Ingest external GitHub repositories, introspect architectural commit trajectories, scaffold sandboxed Harness plugins, and generate Diátaxis documentation suites with C4 architecture models. Do not use for internal Harness kernel refactoring.
- License 许可
- MIT
- 最近更新
- 2026-11-15
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- external-repo-bridge-forge
- description
- Ingest external GitHub repositories, introspect architectural commit trajectories, scaffold sandboxed Harness plugins, and generate Diátaxis documentation suites with C4 architecture models. Do not use for internal Harness kernel refactoring.
02 资源文件 4
- 参考文档CARD.md3.4 KB
- 参考文档config.default.yaml851 B
- 参考文档references/bridge-architecture.md1.8 KB
- 脚本scripts/bridge_forge_driver.py9.8 KB
03 SKILL.md 正文
External Repo Bridge Forge: Ingestion, Plugin Synthesis & Documentation
external-repo-bridge-forge is an authoritative composite meta-skill that orchestrates the ingestion of foreign GitHub repositories, architectural pattern extraction, automated Harness plugin synthesis, and production Diátaxis documentation generation with C4 architecture diagrams.
It coordinates four specialized capabilities:
- Repository Introspection & Commit Archaeology (
repo-reader) - Automated Plugin Scaffolding & Synthesis (
repo-to-plugin-forge) - Diátaxis Technical Documentation Architecture (
developer-docs-architect) - Multimodal Diagram & Artifact Projection (
cellcog-multimodal)
See CARD.md for the companion summary card, 5-stage progression matrix, and invariants checklist.
Consult /repo-to-plugin-forge for schema inference, /developer-docs-architect for Diátaxis structure, and bridge-architecture.md for bridge architecture patterns.
The 5-Stage Bridge Forge Progression
[1. Repo Introspection] ──► [2. Seam Partitioning] ──► [3. Sandboxed Plugin Synthesis]
│
▼
[5. Multimodal C4 Projection] ◄── [4. Diátaxis Documentation Suite] ◄─────┘
1. Repository Introspection & Trajectory Analysis
Analyze foreign codebases without polluting the local kernel or exposing credentials:
- Secure Ingestion & Trajectory Archaeology (Rule 15):
- Ingest target repositories via isolated subprocess runners with in-memory credential redaction.
- Trace commit history to uncover structural inflection points, refactoring churn, and architectural intent.
- Polyglot Manifest Inspection:
- Inspect package manifests (
pyproject.toml,package.json,Cargo.toml,go.mod) to extract dependencies, versions, and build scripts.
- Inspect package manifests (
- Public Entrypoint Identification:
- Locate primary exported classes, CLI commands, and top-level functions.
Completion criterion: Repository profile generated with commit trajectory, dependencies, and public API symbols mapped.
2. Seam & Dependency Partitioning
Partition foreign capabilities into single-responsibility plugin modules:
- Domain-Partitioned Plugin Synthesis (Rule 18):
- Never bundle disparate tools into a single monolithic plugin. Partition tools across appropriate category directories (
agent_orchestration,data_engineering,security_and_forensics).
- Never bundle disparate tools into a single monolithic plugin. Partition tools across appropriate category directories (
- Seam Isolation & Interface Elevation:
- Isolate external dependencies from the Harness kernel; introduce typed
ServiceKey[T]abstractions (Rule 2).
- Isolate external dependencies from the Harness kernel; introduce typed
- In-Place Deepening over Sprawl (Rule 20):
- Identify existing Harness plugins that can be deepened in-place before creating redundant duplicate wrappers.
Completion criterion: Seam boundaries mapped and partitioned into single-responsibility plugin candidates.
3. Sandboxed Plugin Scaffolding & Validation
Scaffold production-grade Harness plugins using PluginCreator:
- Subprocess Isolation by Default (Rule 5 & Rule 7):
- Enforce
IsolationMode.SUBPROCESSfor all external plugins; configure lazy venv staging to eliminate startup lag.
- Enforce
- Manifest Specification (
plugin.json):- Declare typed
providesandrequiresdependencies for topological lifecycle resolution (Rule 3).
- Declare typed
- Schema Inference & Tool Registration:
- Generate
main.pyregistering tools into the IoC container via typed keys.
- Generate
- Dual-Mode Plugin Validation (Rule 38):
- Run
PluginValidator.validate_async()orvalidate_sync()to guarantee 100% manifest and structural compliance.
- Run
Completion criterion: Sandboxed plugin scaffolded and validated with 100% pass on
PluginValidator.
4. Diátaxis Documentation Suite Generation
Generate a complete, structured documentation suite using the 4-quadrant Diátaxis framework:
- Tutorial (Learning-Oriented):
- Guided hands-on walkthrough taking a developer from zero to a functioning plugin execution.
- How-To Guide (Task-Oriented):
- Step-by-step recipes for solving concrete real-world problems.
- Reference (Information-Oriented):
- Exact technical specifications of service keys, configuration parameters, and tool arguments.
- Explanation (Understanding-Oriented):
- Architectural context, design trade-offs, and why subprocess isolation was selected.
- Agent-Optimized Index (
llms.txt):- Structured plain-text index for AI agents discovering plugin capabilities.
Completion criterion: Diátaxis documentation suite authored covering all four quadrants plus
llms.txt.
5. Multimodal C4 Architecture Projection
Project the plugin's architecture into visual diagrams and multimodal documentation:
- C4 Architecture Mermaid Modeling:
- Context Diagram (Level 1): User, Harness Kernel, and Foreign System interaction.
- Container Diagram (Level 2): Subprocess sandbox, IPC pipes, and storage databases.
- Component Diagram (Level 3): Internal classes, service providers, and event handlers.
- Subprocess Pipe Disposal Verification (Rule 14):
- Verify async subprocess transports explicitly drain and close pipes in
finallyblocks.
- Verify async subprocess transports explicitly drain and close pipes in
- Knowledge Vault Commit (Rule 40):
- Scaffolding canonical dual-file items (
metadata.json+summary.md) capturing the bridged repository patterns.
- Scaffolding canonical dual-file items (
Completion criterion: Complete C4 Mermaid models rendered, pipe disposal verified, and Knowledge Vault item committed.
The Three Foundational Pillars
1. The Visual Brief Pillar
Every bridge run renders an interactive HTML visual brief in %TEMP% displaying the foreign dependency graph, Diátaxis quadrant matrices, and interactive C4 container diagrams.
2. The Mandatory Checkpoint Pillar
The agent must never author plugin directories or run external installation scripts without first presenting implementation_plan.md with RequestFeedback: true and awaiting explicit user confirmation.
3. Explicit Anti-Patterns
Rigid architectural boundaries prevent unisolated script execution, documentation rot, and monolithic tool bundles.
Anti-Patterns
- Monolithic Tool Bundling — Shoving disparate tools into a single massive plugin instead of domain-partitioned modules (Rule 18).
- Unisolated External Execution — Running external plugin code in-process instead of subprocess sandboxes (Rule 5).
- Diátaxis Quadrant Muddle — Mixing tutorials with technical API reference specifications in an undifferentiated markdown file.
- Pipe Leakage in Sandboxes — Failing to drain and close stdin/stdout/stderr pipes inside
finallyblocks (Rule 14). - Single-File Vault Pollution — Dumping single flat JSON files into
.harness/knowledge/instead of the canonical dual-file directory (metadata.json+summary.md). - Missing Negative Boundaries — Scaffolding bridge skills without explicit
Do not use for...constraints in frontmatter descriptions.
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.