/lc-advanced-skills:doc-updaterfrom lc-advanced-skills
Deploys and manages a daily AI agent that automatically updates GitHub documentation for a LimaCharlie organization. Collects config, diffs changes, analyzes with case context, renders Jinja2 templates, and pushes annotated updates.
Ships in lc-advanced-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Deploy a daily AI agent that keeps GitHub documentation in sync with a LimaCharlie organization's configuration — with contextual explanations for every change.
Prerequisites: Run
/init-lcto initialize LimaCharlie context.
All LimaCharlie operations use the limacharlie CLI directly:
limacharlie <noun> <verb> --oid <oid> --output yaml [flags]
For command help and discovery: limacharlie <command> --ai-help
| Rule | Wrong | Right |
|---|---|---|
| CLI Access | Call MCP tools or spawn api-executor | Use Bash("limacharlie ...") directly |
| Output Format | --output json | --output yaml (more token-efficient) |
| Timestamps | Calculate epoch values | Use date +%s or date -d '7 days ago' +%s |
| OID | Use org name | Use UUID (call limacharlie org list if needed) |
| Secrets | Include values in outputs | Only document secret names, NEVER values |
EXPORT → DIFF → ANALYZE → RENDER → PUSH
┌─────────────────┐
│ doc-exporter.py │ LC CLI → config.yaml (current state)
└────────┬────────┘
│
┌────────▼────────┐
│ doc-differ.py │ config.yaml (old vs new) → diff.yaml
└────────┬────────┘
│
┌────────▼─────────────────────────────────┐
│ AI Agent │
│ │
│ Reads diff.yaml, queries LC cases and │
│ AI sessions for context, generates: │
│ - recent_changes (for README template) │
│ - CHANGELOG.md entry │
│ - Rich git commit message │
└────────┬─────────────────────────────────┘
│
┌────────▼────────┐
│ doc-renderer.py │ config.yaml + templates → 10 markdown files
└────────┬────────┘
│
┌────────▼────────┐
│ git push │ commit annotated docs + config snapshot
└─────────────────┘
The scripts handle mechanical work. The AI agent handles the intelligence: investigating WHY things changed and writing explanations with case references.
Templates and scripts are read directly from the filesystem — no payloads needed. The agent finds them in priority order:
| Priority | Source | How to configure |
|---|---|---|
| 1 | Explicit path | Set skill_path in doc-state lookup |
| 2 | Custom git repo | Set skill_repo in doc-state lookup |
| 3 | Default: local plugin | /opt/lc-advanced-skills/skills/doc-updater (no config needed) |
In the standard LimaCharlie AI agent runtime, plugin code is mounted at:
/opt/lc-essentials/ — core plugin/opt/lc-advanced-skills/ — advanced skills pluginThe agent reads templates and scripts from:
/opt/lc-advanced-skills/skills/doc-updater/templates/
/opt/lc-advanced-skills/skills/doc-updater/scripts/
No payload uploads, no deployment steps, no drift. Updates to templates in the repo are picked up on the next agent run automatically.
Users who want to customize the doc templates can provide their own repo:
# In the doc-state lookup:
skill_repo: "https://github.com/myorg/my-doc-templates"
The custom repo must follow the same directory structure:
my-doc-templates/
├── scripts/
│ ├── doc-exporter.py
│ ├── doc-renderer.py
│ └── doc-differ.py
└── templates/
├── readme.md.j2
├── architecture.md.j2
├── sensors.md.j2
├── detection-rules.md.j2
├── ai-agents.md.j2
├── data-pipeline.md.j2
├── access-control.md.j2
├── runbook-admin.md.j2
├── runbook-ir.md.j2
└── runbook-updating.md.j2
For testing or non-standard layouts, set an explicit path:
# In the doc-state lookup:
skill_path: "/home/user/my-custom-doc-updater"
| Component | Type | Description |
|---|---|---|
doc-updater | AI Agent (hive) | Sonnet model, daily schedule |
doc-updater-daily | D&R Rule | 24h_per_org schedule trigger |
doc-updater | API Key + Secret | Scoped LC API key for config reads + case queries |
github-pat | Secret | GitHub PAT for repo push access |
doc-state | Lookup | Contains repo_url, template source config, and run metadata |
scripts/ directory)| Script | Input | Output | Purpose |
|---|---|---|---|
doc-exporter.py | OID | config.yaml | Collects all org config via LC CLI |
doc-differ.py | old + new config.yaml | diff.yaml | Deterministic structural diff |
doc-renderer.py | config.yaml + templates | 10 markdown files | Jinja2 template rendering |
templates/ directory)| Template | Output File |
|---|---|
readme.md.j2 | README.md (includes Recent Changes section) |
architecture.md.j2 | architecture.md |
sensors.md.j2 | sensors.md |
detection-rules.md.j2 | detection-rules.md |
ai-agents.md.j2 | ai-agents.md |
data-pipeline.md.j2 | data-pipeline.md |
access-control.md.j2 | access-control.md |
runbook-admin.md.j2 | runbooks/common-admin-tasks.md |
runbook-ir.md.j2 | runbooks/incident-response.md |
runbook-updating.md.j2 | runbooks/updating-docs.md |
<docs-repo>/
├── README.md # Includes "Recent Changes" section
├── CHANGELOG.md # Accumulates change entries with context
├── architecture.md
├── sensors.md
├── detection-rules.md
├── ai-agents.md
├── data-pipeline.md
├── access-control.md
├── runbooks/
│ ├── common-admin-tasks.md
│ ├── incident-response.md
│ └── updating-docs.md
└── .doc-updater/
└── config.yaml # Config snapshot for next run's diff
repo scopeCreate a scoped API key named doc-updater with permissions:
org.get, sensor.list, dr.list, fp.ctrl, ext.conf.get,
investigation.get, investigation.set, lookup.get, lookup.set,
org_notes.get, org_notes.set, sop.get, ai_agent.operate,
audit.get, secret.get
Store the API key as secret doc-updater
Store the GitHub PAT as secret github-pat
Create doc-state lookup with the repo URL and optional template source:
# Minimum required:
repo_url: "https://github.com/<owner>/<repo>"
# Optional — custom template source:
# skill_path: "/path/to/custom/doc-updater"
# skill_repo: "https://github.com/myorg/my-doc-templates"
Deploy from the agent/ directory in this skill.
The first run will treat everything as "new" and generate a comprehensive initial changelog. Subsequent runs only document actual changes.
| Task | Who Does It | Why |
|---|---|---|
| Collect org config | doc-exporter.py | Deterministic, fast |
| Compare old vs new | doc-differ.py | Deterministic, structural |
| Investigate WHY changes happened | AI Agent | Queries cases, AI sessions, audit logs |
| Write contextual changelog | AI Agent | Natural language with case references |
| Write rich commit message | AI Agent | Summarizes with context |
| Render markdown from templates | doc-renderer.py | Deterministic Jinja2 |
| Git operations | Shell commands | Mechanical push |
Since templates are read directly from the repo (not payloads):
.j2 files in templates/ and commitFor custom template repos: push changes to the custom repo. Same effect.
limacharlie hive delete --hive-name ai_agent --key doc-updater --oid <oid> --confirm
limacharlie dr delete --key doc-updater-daily --oid <oid> --confirm
# Delete secrets
limacharlie secret delete --key doc-updater --oid <oid> --confirm
limacharlie secret delete --key github-pat --oid <oid> --confirm
# Delete lookup
limacharlie lookup delete --key doc-state --oid <oid> --confirm
# Delete API key
limacharlie api-key delete --key-hash <hash> --oid <oid> --confirm
agent/doc-updater.yaml (opens in a new tab)agent/hives/ai_agent.yaml (opens in a new tab)agent/hives/dr-general.yaml (opens in a new tab)agent/hives/secret.yaml (opens in a new tab)scripts/config-schema.yaml (opens in a new tab)scripts/doc-differ.py (opens in a new tab)scripts/doc-exporter.py (opens in a new tab)scripts/doc-renderer.py (opens in a new tab)templates/access-control.md.j2 (opens in a new tab)templates/ai-agents.md.j2 (opens in a new tab)templates/architecture.md.j2 (opens in a new tab)templates/data-pipeline.md.j2 (opens in a new tab)templates/detection-rules.md.j2 (opens in a new tab)templates/readme.md.j2 (opens in a new tab)templates/runbook-admin.md.j2 (opens in a new tab)templates/runbook-ir.md.j2 (opens in a new tab)templates/runbook-updating.md.j2 (opens in a new tab)templates/sensors.md.j2 (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub refractionpoint/lc-ai --plugin lc-advanced-skills16 skills in this plugin
/adapter-assistantComplete adapter lifecycle assistant for LimaCharlie. Supports External Adapters (cloud-managed), Cloud Sensors (SaaS/cloud integrations), and On-prem USP adapters. Dynamically researches adapter types from local docs and GitHub usp-adapters repo. Creates, validates, deploys, and troubleshoots adapter configurations. Handles parsing rules (Grok, regex), field mappings, credential setup, and multi-adapter configs. Use when setting up new data sources (Okta, S3, Azure Event Hub, syslog, webhook, etc.), troubleshooting ingestion issues, or managing adapter deployments./fp-pattern-finderAutomatically detect false positive patterns in detections using deterministic analysis. Fetches historic detections for a time window, runs pattern detection script to identify noisy patterns (single-host concentration, identical command-lines, service accounts, same hash, temporal periodicity, etc.), generates narrow FP rules for each pattern, and presents for user approval before deployment. Use for bulk FP tuning, detection noise analysis, or automated alert fatigue reduction./graphic-outputGenerate interactive HTML dashboards and visualizations from LimaCharlie data using Jinja2 templates and D3.js charts. Creates professional, self-contained HTML reports with pie charts, bar charts, line graphs, gauges, sortable tables, and responsive layouts. Supports MSSP multi-tenant dashboards, single-org details, sensor health reports, detection analytics, and billing summaries. Integrates with reporting, sensor-health, and detection-engineering skills. Built with strict data accuracy guardrails - NEVER fabricates, estimates, or infers data. Use for "visual report", "dashboard", "HTML output", "interactive charts", "export HTML", "generate visualization", "graphical report".
/init-cases-to-slackSet up automated Slack notifications for LimaCharlie case events. Creates a Python playbook, D&R rules, API key, and secrets so that case creations, resolutions, severity upgrades, and closures post rich messages to a Slack channel. Usage - /init-cases-to-slack <org_name>/init-feedbackSet up interactive feedback channels for LimaCharlie ext-feedback. Subscribes to the extension, configures channels (Web, Slack, Telegram, Microsoft Teams, Email), creates required Tailored Outputs and secrets, and optionally creates a sample D&R rule that requests human approval before containment. Usage - /init-feedback <org_name>/lc-deployerREQUIRED for ANY operation involving ai-team or ai-agent definitions: deploy, install,
update, upgrade, remove, push, sync, or modify AI agents and Agentic SOC configurations
in a LimaCharlie organization. This includes modifying agent prompts, updating hive
configs (ai_agent, dr-general), managing API keys and secrets, subscribing to extensions,
and pushing changes after editing source YAML files in ai-teams/ or ai-agents/ directories.
Trigger words: ai-team, ai-agent, ai_agent hive, deploy SOC, install agent, push agent,
update agent, sync agent, baselining-soc, tiered-soc, lean-soc, exposure-team, intel-team,
l1-bot, general-analyst, bulk-triage, l2-analyst, malware-analyst, containment,
threat-hunter, soc-manager, shift-reporter. Examples: "deploy tiered-soc to my org",
"install lean-soc", "update the l1-bot agent", "push agent changes to the org",
"remove the tiered SOC", "modify the bulk-triage prompt".
Other plugins' skills for the same job