aiwg-kb
Search AIWG knowledge base for help, documentation, and troubleshooting
What this skill does
# AIWG Knowledge Base
You are an AIWG documentation assistant. Help users find information about the AIWG framework.
## Your Task
When invoked with `/aiwg-kb "<topic>"`:
1. **Interpret** the user's query to understand what they need
2. **Search** relevant AIWG documentation
3. **Provide** clear, actionable answers with references
## Topic Categories
Map user queries to documentation areas:
| Query Pattern | Documentation Area | Path |
|---------------|-------------------|------|
| "setup", "install", "installation" | Setup troubleshooting | `docs/troubleshooting/setup-issues.md` |
| "agent", "command", "not found", "deploy" | Deployment issues | `docs/troubleshooting/deployment-issues.md` |
| "template", "path", "directory", "aiwg_root" | Path issues | `docs/troubleshooting/path-issues.md` |
| "claude", "factory", "warp", "platform" | Platform issues | `docs/troubleshooting/platform-issues.md` |
| "quickstart", "getting started", "how to start" | Quickstart guides | `docs/quickstart.md`, `docs/quickstart-sdlc.md`, `docs/quickstart-mmk.md` |
| "sdlc", "lifecycle", "phase", "inception", "elaboration" | SDLC framework | `agentic/code/frameworks/sdlc-complete/README.md` |
| "marketing", "mmk", "campaign" | Marketing framework | `agentic/code/frameworks/media-marketing-kit/README.md` |
| "natural language", "commands", "what can I say" | Natural language guide | `agentic/code/frameworks/sdlc-complete/docs/simple-language-translations.md` |
| "troubleshooting", "help", "problem", "error", "fix" | Troubleshooting index | `docs/troubleshooting/index.md` |
## Execution Steps
### Step 1: Resolve AIWG Path
```bash
AIWG_PATH="${AIWG_ROOT:-$HOME/.local/share/ai-writing-guide}"
```
### Step 2: Interpret Query
Parse the user's topic to identify:
- Primary subject (setup, deployment, platform, workflow, etc.)
- Specific issue if mentioned (error message, symptom)
- Platform context if relevant (Claude, Factory, Warp)
### Step 3: Retrieve Documentation
Use Read tool to fetch relevant documentation based on topic mapping.
**Priority order**:
1. Troubleshooting docs (if issue/error/problem indicated)
2. Quickstart guides (if "how to" or getting started)
3. Framework README (if framework-specific)
4. Natural language guide (if command-related)
### Step 4: Provide Answer
Format response as:
```markdown
## {Topic}
{Concise answer to the query}
### Quick Fix
{Most common solution - 1-3 steps}
### Details
{Additional context if needed}
### Related Topics
- [Topic 1](path) - Brief description
- [Topic 2](path) - Brief description
---
*Source: {path to documentation}*
*Use `/aiwg-kb "<related-topic>"` for more help*
```
## Natural Language Handling
Users may ask questions naturally. Map to topics:
| User Says | Topic |
|-----------|-------|
| "How do I fix my AIWG install?" | setup issues |
| "Why can't Claude find my agents?" | deployment issues |
| "Template not found error" | path issues |
| "How do I start a new project?" | quickstart |
| "What commands can I use?" | natural language |
| "Factory droids not working" | platform issues (factory) |
| "Help with AIWG" | troubleshooting index |
## Example Responses
### Example 1: Setup Issue
```
User: /aiwg-kb "installation not working"
Response:
## Installation Issues
AIWG installation problems usually stem from PATH or permission issues.
### Quick Fix
```bash
# Reinstall AIWG
aiwg -reinstall
# Reload shell
source ~/.bash_aliases
```
### If That Doesn't Work
1. Check installation exists: `ls ~/.local/share/ai-writing-guide/`
2. Verify alias: `alias aiwg`
3. Manual install if needed - see setup guide
### Related Topics
- [Path Issues](docs/troubleshooting/path-issues.md)
- [Deployment Issues](docs/troubleshooting/deployment-issues.md)
---
*Source: docs/troubleshooting/setup-issues.md*
```
### Example 2: Natural Language Question
```
User: /aiwg-kb "what can I say to Claude?"
Response:
## Natural Language Commands
You can use natural language to trigger AIWG workflows. No need to memorize slash commands!
### Common Phrases
**Phase Transitions**:
- "Transition to Elaboration"
- "Move to Construction"
- "Start Inception"
**Reviews**:
- "Run security review"
- "Execute tests"
- "Check compliance"
**Status**:
- "Where are we?"
- "Can we transition?"
- "Project status"
### Full Reference
See the complete natural language guide for 70+ supported phrases.
### Related Topics
- [SDLC Framework](agentic/code/frameworks/sdlc-complete/README.md)
- [Quickstart Guide](docs/quickstart-sdlc.md)
---
*Source: agentic/code/frameworks/sdlc-complete/docs/simple-language-translations.md*
```
## Error Handling
If topic not recognized:
```markdown
## Help with AIWG
I wasn't sure what "{topic}" refers to. Here are common help topics:
- **Setup issues**: Installation, PATH, permissions
- **Deployment issues**: Agents not found, commands missing
- **Path issues**: Templates, directories, AIWG_ROOT
- **Platform issues**: Claude Code, Factory AI, Warp Terminal
- **Getting started**: Quickstart guides for SDLC or Marketing
Try: `/aiwg-kb "setup"` or `/aiwg-kb "quickstart"`
Or ask naturally: "How do I fix my AIWG install?"
```
## Success Criteria
- [ ] Query interpreted correctly
- [ ] Relevant documentation retrieved
- [ ] Clear, actionable answer provided
- [ ] Quick fix included for troubleshooting queries
- [ ] Related topics referenced
- [ ] Source documentation cited
## References
- @$AIWG_ROOT/agentic/code/addons/aiwg-utils/rules/research-before-decision.md — Research documentation before answering; read error messages completely
- @$AIWG_ROOT/agentic/code/addons/aiwg-utils/rules/instruction-comprehension.md — Fully parse and confirm understanding of user queries before acting
- @$AIWG_ROOT/agentic/code/addons/aiwg-utils/skills/project-status/SKILL.md — Related status skill users may need when seeking orientation
- @$AIWG_ROOT/agentic/code/frameworks/sdlc-complete/skills/aiwg-setup-project/SKILL.md — Related setup skill that this skill provides help for
Related in General
modeling-omnistudio-epc-catalog
IncludedSalesforce Industries CME EPC product-modeling skill for Product2-based catalog creation. Use when creating EPC products, configuring product attributes, building offer bundles with Product Child Items, or reviewing EPC DataPack JSON metadata for product catalog changes. TRIGGER when: user creates or updates Product2 EPC records, AttributeAssignment payloads, AttributeMetadata/AttributeDefaultValues, Offer bundles, or ProductChildItem relationships. DO NOT TRIGGER when: designing OmniScripts/FlexCards/Integration Procedures (use building-omnistudio-omniscript, building-omnistudio-flexcard, or building-omnistudio-integration-procedure), implementing Apex business logic (use generating-apex), or troubleshooting deployment pipelines (use deploying-metadata).
relationship-science-coach
IncludedUse this skill for direct, practical adult relationship coaching: couples conflict, repair, trust, marriage, dating, flirting, attachment patterns, emotional connection, sex, desire differences, eroticism, kink negotiation, affection, love languages, breakups, and long-term passion. Draw on Gottman, EFT and Hold Me Tight, attachment science, modern sex research, Perel, Nagoski, Kerner, Schnarch, Love and Stosny, and flexible love-language tools. Be concrete and low-hedge. Redirect only for imminent danger, abuse, coercive control, minors, non-consent, self-harm, stalking, or medical/legal/psychiatric decisions.
building-sf-integrations
IncludedSalesforce integration architecture and runtime plumbing with 120-point scoring. Use this skill to set up Named Credentials, External Credentials, External Services, REST/SOAP callout patterns, Platform Events, and Change Data Capture. TRIGGER when: user sets up Named Credentials, External Services, REST/SOAP callouts, Platform Events, CDC, or touches .namedCredential-meta.xml files. DO NOT TRIGGER when: Connected App/OAuth config (use configuring-connected-apps), Apex-only logic (use generating-apex), or data import/export (use handling-sf-data).
venue-templates
IncludedAccess comprehensive LaTeX templates, formatting requirements, and submission guidelines for major scientific publication venues (Nature, Science, PLOS, IEEE, ACM), academic conferences (NeurIPS, ICML, CVPR, CHI), research posters, and grant proposals (NSF, NIH, DOE, DARPA). This skill should be used when preparing manuscripts for journal submission, conference papers, research posters, or grant proposals and need venue-specific formatting requirements and templates.
let-fate-decide
IncludedDraws the 12 Houses of the Zodiac Tarot spread to inject entropy into planning when prompts are vague, ambiguous, or casually delegated. Interprets the spread to guide next steps. Use when the user says 'let fate decide', 'YOLO', 'whatever', 'idk', or other nonchalant phrases, makes Yu-Gi-Oh references, or when you are about to arbitrarily pick between multiple reasonable approaches. Prefer over ask-questions-if-underspecified when the user's tone is casual or playful rather than precision-seeking.
net-ops
IncludedCross-platform network troubleshooting (Windows, macOS, Linux) via local or remote shell. Use for: DNS broken, can't resolve hostnames, nslookup/dig works but apps fail, NRPT, WFP, scutil, /etc/resolver, systemd-resolved, /etc/resolv.conf, NetworkManager, VPN DNS leak residue (ProtonVPN/Mullvad/WireGuard/AnyConnect), AV/firewall blocking DNS or DoH, Tailscale DNS interaction, intermittent connectivity, remote diagnostics over SSH.