install
source · Clone the upstream repo
git clone https://github.com/ai-analyst-lab/ai-analyst
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/ai-analyst-lab/ai-analyst "$T" && mkdir -p ~/.claude/skills && cp -r "$T/.claude/skills/business" ~/.claude/skills/ai-analyst-lab-ai-analyst-business && rm -rf "$T"
manifest:
.claude/skills/business/skill.mdsource content
/business — Business Context Browser
Interactive browser for your organization's knowledge system. Explore terms, products, metrics, objectives, and team structure.
Trigger
Invoked as
/business or /business {subcommand}
Prerequisites
- Organization context must exist at
.knowledge/organizations/{org}/ - Read
to find active organization.knowledge/setup-state.yaml - If no org configured: "No organization context found. Run
Phase 3 to configure business context, or create one manually at/setup
.".knowledge/organizations/{name}/
Subcommands
/business
(no args) — Overview
/businessDisplay a summary of available business context:
📊 Business Context: {org_name} Glossary: {n} terms defined Products: {n} products cataloged Metrics: {n} metrics specified Objectives: {n} OKRs/goals tracked Teams: {n} teams mapped Type /business {category} for details.
Implementation:
- Read
for org name.knowledge/organizations/{org}/manifest.yaml - Use
→helpers/business_context.pyload_business_context(org_path) - Count entries in each category
- Display summary table
/business glossary
— Browse Terms
/business glossaryDisplay all business term definitions:
📖 Glossary ({n} terms) Term | Definition | Category ──────────────────|─────────────────────────────────────|────────── Active User | User with ≥1 session in last 30d | Engagement Churn | No activity for 60+ days | Retention ...
Implementation:
- Load from
business/glossary/terms.yaml - Sort alphabetically
- Show first 20 terms; offer "Show all" if more
- If empty: "No glossary terms defined. Add terms to
.".knowledge/organizations/{org}/business/glossary/terms.yaml
/business products
— View Product Catalog
/business productsDisplay product hierarchy:
📦 Products ({n} total) Product | Category | Status | Key Metrics ──────────────────|─────────────|───────────|──────────── Core Platform | SaaS | Active | MAU, Revenue Mobile App | Mobile | Active | DAU, Retention ...
Implementation:
- Load from
business/products/index.yaml - Display in table format
- If empty: "No products defined. Add products to
.".knowledge/organizations/{org}/business/products/index.yaml
/business metrics
— Inspect Metric Definitions
/business metricsDisplay metric dictionary:
📏 Metrics ({n} defined) Metric | Type | Formula/Definition | Owner ──────────────────|─────────────|───────────────────────────|────── Conversion Rate | Ratio | signups / visitors | Growth MRR | Currency | SUM(active_subscriptions) | Finance ...
Implementation:
- Load from
business/metrics/index.yaml - Cross-reference with
if available.knowledge/datasets/{active}/metrics/ - Show definition, type, owner
- If empty: "No metrics defined. Use
to define metrics, or add to/metrics add
.".knowledge/organizations/{org}/business/metrics/index.yaml
/business objectives
— Review OKRs/Goals
/business objectivesDisplay current objectives:
🎯 Objectives ({n} active) Objective | Key Results | Status ───────────────────────────────|──────────────────────────|──────── Increase activation rate | +15% by Q2 | On Track Reduce churn | <5% monthly by Q3 | At Risk ...
Implementation:
- Load from
business/objectives/index.yaml - Show status indicators (On Track / At Risk / Behind)
- If empty: "No objectives defined. Add OKRs to
.".knowledge/organizations/{org}/business/objectives/index.yaml
/business teams
— Show Team Structure
/business teamsDisplay team organization:
👥 Teams ({n} mapped) Team | Lead | Focus Area | Analysts ──────────────────|─────────────|───────────────────|────────── Growth | Jane D. | Acquisition | 2 Product | John S. | Core Experience | 3 ...
Implementation:
- Load from
business/teams/index.yaml - Show team summary
- If empty: "No teams defined. Add team structure to
.".knowledge/organizations/{org}/business/teams/index.yaml
/business lookup {term}
— Search
/business lookup {term}Search across all categories for a term:
- Search glossary terms (exact + fuzzy match)
- Search product names
- Search metric names
- Search objective text
- Display all matches with category labels
If no match: "No results for '{term}'. Try a different search term or browse categories with
/business."
Implementation:
- Use
→helpers/business_context.py
,get_glossary()
, etc.get_products() - Case-insensitive substring match across all categories
- Rank: exact match > starts-with > contains
- Show top 10 results with category badge
Error Handling
- Missing org directory → suggest
Phase 3/setup - Empty categories → show helpful "how to add" message with file path
- Malformed YAML → show parse error, suggest checking file syntax
- Partial context (some categories empty) → show what exists, note gaps
Display Rules
- Use tables for structured data (align columns)
- Limit initial display to 20 rows; offer pagination
- Always show file paths so users know where to edit
- Adapt detail level: summary for
, detail for subcommands/business