用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/hiyenwong/ai_collection --skill super-factory命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Graph-native Python reimplementation of the Information Dynamics of Music (IDyOM) model that represents predictive memories as explicit graph objects for musical expectation modeling and network analysis.
Physics-aware end-to-end deep reinforcement learning methodology for quadcopter control with actuator dynamics modeling.
Reinforced Dreamer methodology for asymmetric reinforcement learning using latent guidance to improve world model representations and behaviors in model-based RL.
基于 SOC 职业分类
正在显示 SKILL.md
| name | super-factory |
| category | ai_collection |
| description | Super Factory multi-agent pipeline system — E2E testing, real execution, and contract debugging. |
Autonomous Agent development platform with 4-stage pipeline: Research → Planning → Build → Eval.
~/ai_github/super_factory/
# Run E2E test suite (all mocked)
cd ~/ai_github/super_factory && python3 -m pytest tests/test_e2e_pipeline.py -v
# Run full test suite
cd ~/ai_github/super_factory && python3 -m pytest tests/ -v
# Run real pipeline (requires valid API keys)
cd ~/ai_github/super_factory && python3 scripts/run_real_pipeline.py
# Run CLI pipeline
cd ~/ai_github/super_factory && python3 scripts/run_pipeline.py --pipeline default --context "query=topic"
The E2E test suite (tests/test_e2e_pipeline.py) validates the full pipeline through the real Orchestrator + PipelineExecutor stack with mocked LLM responses.
| Class | Coverage |
|---|---|
TestFullPipelineEndToEnd | 4-agent happy path, contract precondition blocking, postcondition failure |
TestPipelineExecutorIntegration | Full DAG execution, context passing, failure propagation |
TestTraceCollectionEndToEnd | TraceCollector record/read round-trip, disk persistence |
TestHookLifecycleE2E | PIPELINE_START, STEP_START, AGENT_POST_EXECUTE, PIPELINE_END hooks |
Each agent role has specific contract preconditions that mock contexts MUST satisfy:
# Research: query (non-empty) + available_sources + knowledge_sources_consulted
research_context = {"query": "topic", "available_sources": ["url"], "knowledge_sources_consulted": [".wiki/"]}
# Planning: vision (non-empty string) + (research_refs (list) OR knowledge_sources (list))
planning_context = {"vision": "Build something", "research_refs": ["ref.md"]}
# Build: plan (non-empty dict) + task_id (non-empty string)
build_context = {"plan": {"tasks": ["T-1"]}, "task_id": "T-1"}
# Eval: spec_path (non-empty string) + target_output (not None)
eval_context = {"spec_path": "specs/agents/build.yaml", "target_output": build_result}
When a test hits "blocked" status:
Pre-condition failed for <role>)contracts/<role>.py to find required fieldsresearch_refs must be a list, not a string; plan must be a dict, not a string# 1. Extract API key from hermes config or use your own
# 2. Write to .env
cat > ~/ai_github/super_factory/.env << 'EOF'
DASHSCOPE_API_KEY=your-key-here
# or KIMI_API_KEY=...
EOF
# 3. Update agents/config.yaml to use the provider with the valid key
# default_provider: dashscope (or kimi)
# fallback_chain: [dashscope] (or [kimi])
state.step_results for individual status, not just state.statusclaude CLI auth is broken (HTTP 403) — ALL models return 403 — kimi-k2.5, qwen3-coder-plus, glm-5, glm-5.1 all fail with Failed to authenticate. API Error: 403 Request not allowed. Do NOT use claude CLI for this project. Use opencode --model kimi-k2.5 --print 'prompt' as fallback for code review and patches instead._make_trace() returns list[Message] instead of list[dict] causing JSON serialization crash; _build_messages() is abstract but unimplemented in domain agents causing NotImplementedError; ModelRouter lacks exponential backoff/retry. These must be patched before any pipeline run will succeed.Use scripts/run_real_pipeline.py for real LLM execution. It:
outputs/pipeline-summary.jsonLocated at knowledge/. Implements Repository Pattern with SQLite backend.
| File | Purpose |
|---|---|
models.py | Entity / Relation / Source data models |
repository/base.py | Abstract KnowledgeRepository interface (CRUD + search + spec) |
repository/sqlite.py | SQLite backend, default .super_factory/data/knowledge.db |
service.py | KnowledgeService facade: add/get/search/link/promote_tier |
validator.py | EntityValidator with spec-based validation (K003-K011) |
adapter.py | KnowledgeService → Hook bridge layer |
Key patterns:
~/wiki/kg.db) not yet integratedLocated at memory/. File-first JSON persistent storage.
| File | Purpose |
|---|---|
types.py | MemoryEntry frozen dataclass (id, pipeline_id, agent_role, category, content, confidence, tags, created_at, expires_at) |
store.py | MemoryStore: per-entry JSON files + _index.json, metadata query, keyword relevance, prune |
blocked/ | Blocked pipeline records |
skills/ | Agent skill cache |
Key patterns:
query() filters by pipeline_id/agent_role/category/tags, sorted by created_at descrelevant() keyword matching with confidence-weighted scoringprune(max_age_days=30) removes expired + old entriesResearch Agent → Planning Agent → Build Agent → Eval Agent
↓ ↓ ↓ ↓
Contract Contract Contract Contract
(pre+post) (pre+post) (pre+post) (pre+post)
↓ ↓ ↓ ↓
Scorer Scorer Scorer Scorer
↓ ↓ ↓ ↓
Trace Trace Trace Trace
Context flows via context_map in pipeline YAML:
research.summary → planning.research_refsplanning.phases → build.planbuild → eval.target_outputreferences/contract-reference.md — Full contract precondition/postcondition specs for all 4 agentsreferences/audit-log-20260509.md — Code quality audit findings (2026-05-09): critical runtime bugs, claude CLI auth failure, opencode fallbackreferences/storage-audit-20260512.md — Knowledge/Memory storage current-state audit (2026-05-12)scripts/run_real_pipeline.py — Ready-to-run real pipeline execution script