AI Company KB (EN)
by @johnsmithfan
AI Company shared knowledge base interface. Unified management of operations records, strategy documents, audit logs. Supports cross-Agent knowledge sharing...
clawhub install ai-company-kbπ About This Skill
name: "AI Company Knowledge Base" slug: "ai-company-kb" version: "1.0.1" homepage: "https://clawhub.com/skills/ai-company-kb" description: | AI Company shared knowledge base interface. Unified management of operations records, strategy documents, audit logs. Supports cross-Agent knowledge sharing and state sync, IMA real-time sync for zero-handoff protocol. license: MIT-0 tags: [ai-company, knowledge-base, shared-state, audit-log, handoff, kb] triggers: - knowledge base - audit log - shared state sync - task handoff - Handoff - AI company KB interface: inputs: type: object outputs: type: object errors: - code: KB_001 message: "IMA sync failed - rolling back to local write" permissions: files: [read, write] network: [api] commands: [] mcp: [] dependencies: skills: [ai-company-hq, ai-company-audit, ai-company-registry] cli: [] quality: saST: Pass vetter: Approved idempotent: true metadata: category: platform layer: AGENT cluster: ai-company maturity: STABLE license: MIT-0 standardized: true
AI Company Knowledge Base v1.0.1
> Shared knowledge base (enhanced). Cross-Agent knowledge sharing, state sync, IMA real-time sync hub, standardized Handoff protocol.
Trigger Scenarios
Invoke when Agent needs to:
Directory Structure
{WORKSPACE_ROOT}/skills/tools/knowledge-base/
βββ daily/
β βββ {YYYY-MM-DD}/
β βββ morning-briefing.md
β βββ evening-report.md
β βββ agent-reports/
βββ audit/ # Audit logs (permanent)
β βββ ceo-decisions/
β βββ financial/
β βββ legal/
β βββ hr/
β βββ tech/
β βββ quality/
βββ shared-state/ # Real-time shared state
β βββ cashflow.json # CFO
β βββ reputation.json # CMO
β βββ quality-metrics.json # CQO
β βββ risk-level.json # CRO
β βββ operations.json # COO
β βββ security.json # CISO
βββ strategy/
β βββ {YYYY-MM-DD}/
βββ skills/
β βββ {YYYY-MM-DD}/
βββ handoff/ # Task handoff records
βββ pending/
βββ in-progress/
βββ completed/
Interfaces
write_shared_state(domain, data, agent_id, sync_ima=True)
Write shared state file (optional auto-sync to IMA). domain: cashflow | reputation | quality-metrics | risk-level | operations | securityread_shared_state(domain) -> dict
Read single shared state.write_audit_log(category, agent_id, action, detail, sensitive=False)
Write audit log entry. category: ceo-decisions | financial | legal | hr | tech | qualitywrite_handoff(handoff_type, sender, receiver, task_summary, completed, pending, key_data=None, risks=None, attachments=None) -> str
Write standard handoff document. handoff_type: pending | in-progress | completedIron Rules
X Sensitive financial/legal data must be marked [sensitive]
X Every Agent call must write corresponding audit log
X After shared-state update, notify relevant reading agents (sessions_send)
X Audit logs are permanent, never delete
X Handoff documents must be created within 10 minutes of task completion
X On IMA sync failure, roll back to local write and log error
Agent-State File Mapping
| Agent | Writes State File | Readers | |-------|-----------------|---------| | CFO | cashflow.json | CEO, COO, CRO | | CMO | reputation.json | CEO, CLO, CRO | | CQO | quality-metrics.json | CEO, CTO | | CRO | risk-level.json | All C-Suite | | COO | operations.json | CEO | | CISO | security.json | CEO, CTO, CLO | | CHO | - | hr-audit/ | | CLO | - | legal-audit/ | | CTO | - | tech-audit/ | | CPO | - | agent-reports/ | | CEO | ceo-decisions/ | All |
*v1.0.1 - BOM removed, rebuilt with UTF-8 clean*