一键导入
kb-ingest
Ingest a source (URL, file, or freeform note) into the knowledge base. Creates a source summary and updates or creates relevant entity and concept pages.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Ingest a source (URL, file, or freeform note) into the knowledge base. Creates a source summary and updates or creates relevant entity and concept pages.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Generate a corpus snapshot report — computes dimensions, topology, degree distribution, delta from previous. Helps with cluster, chain, and gap analysis sections.
Detect requests for iterative autonomous agent loops and route to the appropriate loop executor
Orchestrate multi-loop background operations via the Mission Control dashboard — start sessions, dispatch missions, monitor, and stop
Launch an AIWG Mission — durable, audited dynamic agent orchestration toward a completion criterion. AIWG owns the conductor (activity-log, gates, best-output, checkpoint/resume, cost); native primitives drive worker mechanism. Surfaces as /aiwg-mission in Codex (AIWG-owned, no plugin dependency).
Config-driven release orchestration — reads .aiwg/release.config plus optional .aiwg/releases/<plan-id> sidecars and walks the selected release plan's gates
Update AIWG CLI and redeploy frameworks/tools to current project without leaving the session
| namespace | aiwg |
| platforms | ["all"] |
| name | kb-ingest |
| description | Ingest a source (URL, file, or freeform note) into the knowledge base. Creates a source summary and updates or creates relevant entity and concept pages. |
| commandHint | {"argumentHint":"<source> [--topic <tag>] [--kb <path>] [--dry-run]","allowedTools":"Read, Write, Glob, Grep, Bash, WebFetch, WebSearch","model":"sonnet","category":"knowledge-base"} |
Ingest any source — a URL, local file, or freeform note — into the knowledge base. Produces a source summary, then creates or updates entity and concept pages with new information.
/kb-ingest <source> → direct invocation<source> (required)| Format | Behavior |
|---|---|
https://... | Fetch with WebFetch, extract content |
| File path | Read the file directly |
| Quoted text | Treat as freeform note or paste |
--topic <tag> (optional)Tag this source with a topic hint (e.g., --topic "machine-learning"). Influences which entity/concept pages to touch.
--kb <path> (optional)Root of the knowledge base. Default: resolved by aiwg kb path (#965), which reads resolveStorage('kb') and honors any roots.kb override in .aiwg/storage.config. On the default fs backend this is .aiwg/kb/. To redirect the KB to an Obsidian vault or other backend without changing this skill, configure .aiwg/storage.config (#934).
When this skill needs to resolve the root from inside a Bash step:
KB_ROOT=$(aiwg kb path)
# write a page through the adapter (preferred — honors all backends):
echo "# Foo" | aiwg kb put entities/foo.md
# or write directly to the resolved fs path (fs backend only):
echo "# Foo" > "$KB_ROOT/entities/foo.md"
Fortemi storage routing here is only a persistence backend choice. It is not the
Fortemi Core index/search backend used by aiwg index ... by default;
--backend local selects the legacy fallback. KB pages join that search cache
only after the artifact graph has been built and synced with aiwg index sync.
--dry-run (optional)Show what would be created or updated without writing files.
Using the source-summary template at $AIWG_ROOT/agentic/code/frameworks/knowledge-base/templates/source-summary.md:
Determine the slug: lowercase title, spaces to hyphens, strip punctuation.
Save to: <kb>/sources/<slug>.md
Scan the source content for:
For each identified item:
<kb>/entities/ or <kb>/concepts/.Use the entity-page template for discrete things. Use the concept-page template for ideas and techniques.
In the new source summary, populate the Connections section with [[wiki-links]] to pages touched.
In each touched entity/concept page, add the source to the Sources table.
KB Ingest complete
Source summary: .aiwg/kb/sources/article-slug.md
Pages created:
+ .aiwg/kb/entities/person-name.md
+ .aiwg/kb/concepts/technique-name.md
Pages updated:
~ .aiwg/kb/entities/existing-entity.md (added source)
Next steps:
- Review created pages and fill placeholder sections
- Run /kb-health to check for orphan pages