[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6HC3GGVDDJNY36YJBVPXXWX":3,"skill-same:01M6HC3GGVDDJNY36YJBVPXXWX":101},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":20,"linkOnly":21,"markdownContent":22,"markdownBody":23,"frontMatter":24,"refName":25,"commitSha":26,"skillDirectory":27,"forksCount":28,"repositoryHtmlUrl":29,"repositoryHomepageUrl":30,"ownerHtmlUrl":31,"ownerBlogUrl":32,"ownerDescription":33,"updatedAt":34,"install":35,"resources":48},"01M6HC3GGVDDJNY36YJBVPXXWX","defenseclaw-develop",null,"cisco-ai-defense\u002Fdefenseclaw","cisco-ai-defense","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F220944709?v=4","01M6HC38HDCQK9FGE6GXJ4H2ZT","Cisco AI Defense","01M6HC38NKX5MMEWMQXCXGP498",912,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fcisco-ai-defense\u002Fdefenseclaw\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fdefenseclaw-develop\u002FSKILL.md",[],[18,19],"develop","defenseclaw develop","2026-11-10 10:12:30",false,"---\nname: defenseclaw-develop\ndescription: Use before writing or reviewing any DefenseClaw change that is not a new connector: config keys, policy and guardrail rules, identity and profiles, managed (enterprise) behavior, sandboxes, new external requirements, hooks and gateway hot paths, telemetry, docs, packaging and upgrades. It gives the design principles, a routing table, a tiered MUST\u002FSHOULD\u002FMAY requirement checklist to paste into the PR description, and the stop-and-ask triggers. For a new or changed agent connector, start with defenseclaw-add-connector, then use this skill for the shared gates.\n---\n\n# Develop DefenseClaw\n\nDefenseClaw governs AI agents on a developer laptop (OSS, per user) and on managed machines (standalone enterprise, one gateway serving many users). One Go gateway, one Python CLI, one TUI and one docs site serve both. Most regressions in this repository are silent: a closed list that misses an entry, a lenient fallback, a mirror that drifted, a feature that costs CPU when off.\n\nSource code and tests are authoritative. Last full sweep: not yet run (set by the first quarterly sweep). If this skill disagrees with them, trust the code and fix the skill (`reference\u002Fmaintenance.md`). The skill names files, symbols and make targets, never line numbers. Find a symbol with `git grep -n '\u003Csymbol>'`.\n\n## When to use\n\n| Situation | Use |\n| --- | --- |\n| Any change except a new or changed agent connector | this skill |\n| A new or changed connector (hook, plugin, proxy, ACP route) | `defenseclaw-add-connector`, then the connector rows here for the shared gates |\n| TUI panels, modals, Setup wizards | `defenseclaw-tui`, plus the TUI rows here |\n| Commands, toolchain, PR hygiene | `CONTRIBUTING.md` and `docs\u002FTESTING.md` (this skill links, it does not copy) |\n\n## Architecture map\n\n```\nagent hook \u002F plugin \u002F proxy \u002F ACP\n  -> defenseclaw-hook (cmd\u002Fdefenseclaw-hook): one bounded local call\n  -> defenseclaw-gateway (cmd\u002Fdefenseclaw): config generation snapshot, policy (internal\u002Fpolicy, Rego + Go twin),\n     guardrail rule packs (internal\u002Fguardrail), identity -> profile (internal\u002Fuseridentity), audit SQLite (internal\u002Faudit),\n     telemetry (internal\u002Fobservability), sandboxes (internal\u002Fopenshell)\ndefenseclaw CLI + TUI (cli\u002Fdefenseclaw): writes config.yaml only through the shared writer; doctor, setup, migrate\nmanaged hosts: lifecycle transaction (internal\u002Fenterpriseunix, packaging\u002Fwindows), guardian and enumerator\n  (internal\u002Fenterprisehooks), packages (.goreleaser.yaml, packaging\u002F)\ndocs: docs-site\u002Fcontent\u002Fdocs (operator), docs\u002F (contributor)\n```\n\n## The ten design principles\n\nEach principle maps to requirement IDs in `reference\u002Fchecklist.md`.\n\n1. **Config is the single source of truth.** `config.yaml` decides policy. Hook scripts, provider files and machine policy are derived from it. No hidden env var, side file or second writer. (CFG, DEP)\n2. **Never silently lenient; outages follow the fail-mode table.** A failed lookup, bad pack or missing scan result resolves to the stricter outcome, with a reason code. A gateway outage follows `docs-site\u002Fcontent\u002Fdocs\u002Freference\u002Ffail-modes.mdx`: per-user default and permissive open, with a warning and an audit record; per-user strict closed; managed standalone closed unless an administrator sets `open`; Secure Client open unless set `closed`; a saved mode wins. Defaults stay balanced: lockdown lives in strict or action mode. (POL, ID, CFG, DEP)\n3. **Managed hosts never allow what policy denies.** Mode comes from the pinned service environment, not a user-writable file. Environment overrides on managed hosts only tighten. Local writers are refused. (DEP, SEC)\n4. **Identity-scoped policy with per-user privacy.** Only kernel- or credential-verified identity selects a profile. A user sees only their own effective policy; everything else is admin-only, enforced server side. (ID)\n5. **Everything is switchable and costs nothing when off.** Every feature has an off switch, starts no goroutine, watcher, timer or listener while off, and is covered by a test that proves it. (PERF, DEP)\n6. **Hot-path discipline.** Hooks run on every agent tool call. One bounded local call, bounded inputs, immediate refusal under load, no queued judge, no per-event heavy work. (PERF)\n7. **Bundle-at-once, atomic apply with rollback.** Config, policy, rule packs and assets are one unit: pinned by digest, applied together, rolled back together. A feature that needs a second manual step breaks managed deployments. (DEP, CFG, POL)\n8. **Disclose every external requirement.** Docker, a VM, a local model, a GPU, an extra, a system package, an OS floor or new network egress is optional where possible, detected with an actionable message, documented, tested when missing, and never installed silently. Each one is tiered Required, Recommended or Optional. (REQ, SBX)\n9. **Observability and audit for every state change.** Typed audit actions, registered error codes, generated telemetry, redaction at the projection boundary. (OBS)\n10. **One upgrade path, no dead code.** Upgrades are supported from 1.0.0 on. The 0.8.x bridge is legacy: do not extend it, and remove what you touch. Each change removes the dead or legacy code it touches and says why. A shim stays only for a named supported upgrade, with an end version. (PKG, PR)\n\n## Before you code\n\n1. **Classify the change.** Use the routing table. A change usually has two to four areas.\n2. **Open only what you need.** Read the area sections of `reference\u002Fchecklist.md` (`grep -n -- '-CFG-' .claude\u002Fskills\u002Fdefenseclaw-develop\u002Freference\u002Fchecklist.md`, swap the area code); it is the only place requirement IDs are defined. Open the one or two area references from the table below for detail. Do not load the rest.\n3. **Check the stop-and-ask list** below. If any trigger applies, ask a maintainer in the issue or PR before building.\n4. **Write the checklist block first.** Copy `reference\u002Fpr-block.md` into the PR description (or a draft PR) before the first commit. List the area IDs that apply and mark non-applicable ones with a reason.\n5. **Code, then verify.** Run the gates in `docs\u002FTESTING.md` (\"Before a PR\") and the area checks named by each requirement. Tick the block with the commands you ran and the results you saw.\n6. **Update this skill** when the change alters an architecture rule (`reference\u002Fmaintenance.md`, update map).\n\n## Routing table\n\n| You change | Areas | Also open |\n| --- | --- | --- |\n| A config key, schema, default, migration | CFG, DOC, PKG | `docs\u002FCONFIG_FILES.md`, `schemas\u002FREADME.md` |\n| A `DEFENSECLAW_*` environment variable | CFG, DEP, DOC | `internal\u002Fenvvars\u002Fregistry.json` |\n| Rego, admission, rule packs, detections | POL, TST, PERF | `docs\u002FGUARDRAIL_RULE_PACKS.md` |\n| Profiles, assignments, directory facts, agent identity | ID, POL, SEC | `docs-site\u002Fcontent\u002Fdocs\u002Fguardrail\u002Fuser-and-group-policies.mdx` |\n| Enterprise, MDM, guardian, lifecycle, machine policy | DEP, PKG, SEC, TST | `docs-site\u002Fcontent\u002Fdocs\u002Fenterprise\u002Fmachine-policy.mdx`, `.github\u002Fmanaged-paths.txt` |\n| Behavior for one mode (OSS, standalone, Secure Client) in shared code | DEP, TST | M-DEP-18 in `reference\u002Fchecklist.md`, `reference\u002Fdeployment-modes.md` |\n| A shared default (config default, hook answer, fail mode, installer path, telemetry routing, CI gate) | DEP, CFG, TST | M-DEP-19 in `reference\u002Fchecklist.md`, `.github\u002Fmanaged-paths.txt` |\n| Sandboxes, OpenShell, drivers | SBX, REQ, DEP | `docs\u002FSANDBOX.md` (contributor notes) |\n| Scanners, judges, local models | SCN, REQ | `reference\u002Frequirements-and-sandboxes.md` |\n| A new tool, model, daemon, package or network call | REQ, DEP, DOC | `internal\u002Fopenshell\u002Fdoctor.go` as the detection model |\n| Hook binary, gateway endpoint, SQLite, scanning, exporters | PERF, OBS, TST | `cmd\u002Fdefenseclaw-hook\u002Fmain.go` |\n| Audit actions, error codes, telemetry, redaction, dashboards | OBS, DOC, TST | `schemas\u002FREADME.md` |\n| Docs, CHANGELOG, generated references | DOC, PR | `docs-site\u002FREADME.md` |\n| Installers, packages, upgrade, release, versions | PKG, TST, SEC | `docs\u002FRELEASE_RUNBOOK.md` |\n| Workflows, CI path rules | TST, SEC | `scripts\u002Fci_changes.py`, `.github\u002Fmanaged-paths.txt` |\n| Any pull request | PR | `.github\u002Fpull_request_template.md` |\n| TUI | TST, PERF | `defenseclaw-tui` skill |\n| Audit store schema, inventory or other on-disk state format | PKG, PERF, TST | `internal\u002Faudit\u002Fpending_migrations.go` |\n| `.proto` files or vendored code in `third_party\u002F` | TST, SEC, PKG | `third_party\u002Ftetragon\u002FREADME.md`; run `make proto-check` |\n| The macOS app (`macos\u002FDefenseClawMac`) | TST, SEC, PKG | `macos\u002FDefenseClawMac\u002FUPDATING.md`; run `make macos-app-test` |\n| The OpenClaw extension (`extensions\u002Fdefenseclaw`) | TST, SEC, PKG | `scripts\u002Fextension_runtime_fingerprint.py`; run `make ts-test` |\n| Scanner plugins, YARA or scanner policies, `skills\u002Fcodeguard` | POL, SEC, TST | `internal\u002Fpolicy\u002Ffirst_party_verify.go` (update the codeguard content signatures with `skills\u002Fcodeguard`) |\n| Kernel sensor, Tetragon, egress firewall | REQ, DEP, SEC, PERF | `docs-site\u002Fcontent\u002Fdocs\u002Fenterprise\u002Ftetragon.mdx`, `internal\u002Ffirewall` |\n| Splunk bridge or dashboards | OBS, DOC | `bundles\u002Fsplunk_o11y_dashboards` |\n| Connector | all that apply | `defenseclaw-add-connector` skill |\n\n## Stop and ask a maintainer\n\nOpen an issue or ask in the PR before writing code when the change would:\n\n| Trigger | Why it needs a decision |\n| --- | --- |\n| Change a default so it weakens security, or loosen a managed knob | Defaults reach every install; managed hosts must keep denying what policy denies |\n| Add a daemon, background service or listening port | New attack surface and per-user cost; managed listeners must stay on loopback |\n| Add a network egress (new host, new outbound call, new update or telemetry path) | Needs disclosure, an off switch and a firewall note |\n| Add a dependency or external requirement (module, extra, binary, VM, GPU, OS floor) | Disclosure, packaging and upgrade impact on every channel |\n| Change the config schema version or the migration chain | A one-sided bump locks out upgrades |\n| Touch signing, checksums, package formats or any bundle or digest format | Operators pin these; a change breaks verification and rollback |\n| Alter identity or privacy rules (who selects a profile, who can read policy) | Policy bypass or cross-user leak |\n| Touch the Secure Client profile paths from OSS or standalone work | They must stay byte-identical; maintainers run a separate invariance check |\n| Change shared code or a shared default from Secure Client work (gateway, hook paths, hookexec, guardrails, config loading, observability plan compile, installers, CI gates) | OSS and standalone must not change; a maintainer of the other modes signs off |\n| Add a management feature | Standalone managed only, never Secure Client; DefenseClaw ships only the local management contract |\n\n## Tier legend\n\n| Tier | ID prefix | Meaning |\n| --- | --- | --- |\n| MUST | `M-` | The PR is not mergeable without it: it breaks a gate, a security property, an upgrade path or an operator |\n| SHOULD | `S-` | Expected. A reviewer will ask. Skipping needs a one-line justification in the PR |\n| MAY | `O-` | Optional polish |\n\nIDs look like `M-CFG-1` (tier, area, number). Areas: CFG config, POL policy and guardrails, ID identity, DEP deployment modes and bundles, REQ external requirements, SBX sandbox, SCN scanners, judges and local models, TST testing, PERF performance and size, OBS observability and audit, DOC docs, SEC security, PKG packaging and upgrade, PR pull request hygiene.\n\n## References\n\n| File | Open when |\n| --- | --- |\n| `reference\u002Fchecklist.md` | Always, for the sections of your areas; the only place requirement IDs are defined |\n| `reference\u002Fpr-block.md` | Opening or updating a PR description |\n| `reference\u002Fconfig.md` | Adding or changing a config key, default, migration, environment variable, writer or reload path |\n| `reference\u002Fidentity-policy.md` | Rego, rule packs, guardrail profiles, assignments, identity sources, policy visibility |\n| `reference\u002Fdeployment-modes.md` | Behavior that differs per mode, feature switches, `enterprise.*` keys, lifecycle, MDM, bundle-at-once apply, upgrade and downgrade |\n| `reference\u002Frequirements-and-sandboxes.md` | Anything outside the wheel and binaries: Docker, VM, local model, GPU, extras, packages, OS floors, egress, sandboxes, scanners |\n| `reference\u002Fperformance.md` | Hook path, gateway request path, audit store, telemetry export, scanning, TUI refresh, new background work or binaries |\n| `reference\u002Fobservability-docs.md` | Audit actions, error codes, telemetry, redaction, docs-site pages, CLI doc references, changelog |\n| `reference\u002Fsecurity-packaging.md` | Secrets, permissions, fail-closed behavior, dependencies, licensing, release and package formats, upgrade path, dead code, opening a PR |\n| `reference\u002Ftesting.md` | Choosing which gates and tests to run, goldens, CI classification, installers, Windows or enterprise code |\n| `reference\u002Fmaintenance.md` | You change an architecture rule, add a requirement, or run the freshness check or quarterly sweep |\n| `CONTRIBUTING.md` | Toolchain versions and the common checks |\n| `docs\u002FTESTING.md` | Which gate covers which change, install scenarios, CI workflow map |\n| `.github\u002Fpull_request_template.md` | Writing the PR body |\n| `.claude\u002Fskills\u002Fdefenseclaw-add-connector\u002FSKILL.md` | The change adds or alters a connector |\n| `.claude\u002Fskills\u002Fdefenseclaw-tui\u002FSKILL.md` | The change touches `cli\u002Fdefenseclaw\u002Ftui` |\n\nFreshness: run `make skill-check` (or `python3 .claude\u002Fskills\u002Fdefenseclaw-develop\u002Fscripts\u002Fcheck_skill_fresh.py`) from the repo root. It fails when a cited path, make target or `@sym:` symbol no longer exists, when a `go test -run` pattern matches no test, when a requirement ID is cited but not defined in the checklist, or when a file exceeds its size limit.\n","# Develop DefenseClaw\n\nDefenseClaw governs AI agents on a developer laptop (OSS, per user) and on managed machines (standalone enterprise, one gateway serving many users). One Go gateway, one Python CLI, one TUI and one docs site serve both. Most regressions in this repository are silent: a closed list that misses an entry, a lenient fallback, a mirror that drifted, a feature that costs CPU when off.\n\nSource code and tests are authoritative. Last full sweep: not yet run (set by the first quarterly sweep). If this skill disagrees with them, trust the code and fix the skill (`reference\u002Fmaintenance.md`). The skill names files, symbols and make targets, never line numbers. Find a symbol with `git grep -n '\u003Csymbol>'`.\n\n## When to use\n\n| Situation | Use |\n| --- | --- |\n| Any change except a new or changed agent connector | this skill |\n| A new or changed connector (hook, plugin, proxy, ACP route) | `defenseclaw-add-connector`, then the connector rows here for the shared gates |\n| TUI panels, modals, Setup wizards | `defenseclaw-tui`, plus the TUI rows here |\n| Commands, toolchain, PR hygiene | `CONTRIBUTING.md` and `docs\u002FTESTING.md` (this skill links, it does not copy) |\n\n## Architecture map\n\n```\nagent hook \u002F plugin \u002F proxy \u002F ACP\n  -> defenseclaw-hook (cmd\u002Fdefenseclaw-hook): one bounded local call\n  -> defenseclaw-gateway (cmd\u002Fdefenseclaw): config generation snapshot, policy (internal\u002Fpolicy, Rego + Go twin),\n     guardrail rule packs (internal\u002Fguardrail), identity -> profile (internal\u002Fuseridentity), audit SQLite (internal\u002Faudit),\n     telemetry (internal\u002Fobservability), sandboxes (internal\u002Fopenshell)\ndefenseclaw CLI + TUI (cli\u002Fdefenseclaw): writes config.yaml only through the shared writer; doctor, setup, migrate\nmanaged hosts: lifecycle transaction (internal\u002Fenterpriseunix, packaging\u002Fwindows), guardian and enumerator\n  (internal\u002Fenterprisehooks), packages (.goreleaser.yaml, packaging\u002F)\ndocs: docs-site\u002Fcontent\u002Fdocs (operator), docs\u002F (contributor)\n```\n\n## The ten design principles\n\nEach principle maps to requirement IDs in `reference\u002Fchecklist.md`.\n\n1. **Config is the single source of truth.** `config.yaml` decides policy. Hook scripts, provider files and machine policy are derived from it. No hidden env var, side file or second writer. (CFG, DEP)\n2. **Never silently lenient; outages follow the fail-mode table.** A failed lookup, bad pack or missing scan result resolves to the stricter outcome, with a reason code. A gateway outage follows `docs-site\u002Fcontent\u002Fdocs\u002Freference\u002Ffail-modes.mdx`: per-user default and permissive open, with a warning and an audit record; per-user strict closed; managed standalone closed unless an administrator sets `open`; Secure Client open unless set `closed`; a saved mode wins. Defaults stay balanced: lockdown lives in strict or action mode. (POL, ID, CFG, DEP)\n3. **Managed hosts never allow what policy denies.** Mode comes from the pinned service environment, not a user-writable file. Environment overrides on managed hosts only tighten. Local writers are refused. (DEP, SEC)\n4. **Identity-scoped policy with per-user privacy.** Only kernel- or credential-verified identity selects a profile. A user sees only their own effective policy; everything else is admin-only, enforced server side. (ID)\n5. **Everything is switchable and costs nothing when off.** Every feature has an off switch, starts no goroutine, watcher, timer or listener while off, and is covered by a test that proves it. (PERF, DEP)\n6. **Hot-path discipline.** Hooks run on every agent tool call. One bounded local call, bounded inputs, immediate refusal under load, no queued judge, no per-event heavy work. (PERF)\n7. **Bundle-at-once, atomic apply with rollback.** Config, policy, rule packs and assets are one unit: pinned by digest, applied together, rolled back together. A feature that needs a second manual step breaks managed deployments. (DEP, CFG, POL)\n8. **Disclose every external requirement.** Docker, a VM, a local model, a GPU, an extra, a system package, an OS floor or new network egress is optional where possible, detected with an actionable message, documented, tested when missing, and never installed silently. Each one is tiered Required, Recommended or Optional. (REQ, SBX)\n9. **Observability and audit for every state change.** Typed audit actions, registered error codes, generated telemetry, redaction at the projection boundary. (OBS)\n10. **One upgrade path, no dead code.** Upgrades are supported from 1.0.0 on. The 0.8.x bridge is legacy: do not extend it, and remove what you touch. Each change removes the dead or legacy code it touches and says why. A shim stays only for a named supported upgrade, with an end version. (PKG, PR)\n\n## Before you code\n\n1. **Classify the change.** Use the routing table. A change usually has two to four areas.\n2. **Open only what you need.** Read the area sections of `reference\u002Fchecklist.md` (`grep -n -- '-CFG-' .claude\u002Fskills\u002Fdefenseclaw-develop\u002Freference\u002Fchecklist.md`, swap the area code); it is the only place requirement IDs are defined. Open the one or two area references from the table below for detail. Do not load the rest.\n3. **Check the stop-and-ask list** below. If any trigger applies, ask a maintainer in the issue or PR before building.\n4. **Write the checklist block first.** Copy `reference\u002Fpr-block.md` into the PR description (or a draft PR) before the first commit. List the area IDs that apply and mark non-applicable ones with a reason.\n5. **Code, then verify.** Run the gates in `docs\u002FTESTING.md` (\"Before a PR\") and the area checks named by each requirement. Tick the block with the commands you ran and the results you saw.\n6. **Update this skill** when the change alters an architecture rule (`reference\u002Fmaintenance.md`, update map).\n\n## Routing table\n\n| You change | Areas | Also open |\n| --- | --- | --- |\n| A config key, schema, default, migration | CFG, DOC, PKG | `docs\u002FCONFIG_FILES.md`, `schemas\u002FREADME.md` |\n| A `DEFENSECLAW_*` environment variable | CFG, DEP, DOC | `internal\u002Fenvvars\u002Fregistry.json` |\n| Rego, admission, rule packs, detections | POL, TST, PERF | `docs\u002FGUARDRAIL_RULE_PACKS.md` |\n| Profiles, assignments, directory facts, agent identity | ID, POL, SEC | `docs-site\u002Fcontent\u002Fdocs\u002Fguardrail\u002Fuser-and-group-policies.mdx` |\n| Enterprise, MDM, guardian, lifecycle, machine policy | DEP, PKG, SEC, TST | `docs-site\u002Fcontent\u002Fdocs\u002Fenterprise\u002Fmachine-policy.mdx`, `.github\u002Fmanaged-paths.txt` |\n| Behavior for one mode (OSS, standalone, Secure Client) in shared code | DEP, TST | M-DEP-18 in `reference\u002Fchecklist.md`, `reference\u002Fdeployment-modes.md` |\n| A shared default (config default, hook answer, fail mode, installer path, telemetry routing, CI gate) | DEP, CFG, TST | M-DEP-19 in `reference\u002Fchecklist.md`, `.github\u002Fmanaged-paths.txt` |\n| Sandboxes, OpenShell, drivers | SBX, REQ, DEP | `docs\u002FSANDBOX.md` (contributor notes) |\n| Scanners, judges, local models | SCN, REQ | `reference\u002Frequirements-and-sandboxes.md` |\n| A new tool, model, daemon, package or network call | REQ, DEP, DOC | `internal\u002Fopenshell\u002Fdoctor.go` as the detection model |\n| Hook binary, gateway endpoint, SQLite, scanning, exporters | PERF, OBS, TST | `cmd\u002Fdefenseclaw-hook\u002Fmain.go` |\n| Audit actions, error codes, telemetry, redaction, dashboards | OBS, DOC, TST | `schemas\u002FREADME.md` |\n| Docs, CHANGELOG, generated references | DOC, PR | `docs-site\u002FREADME.md` |\n| Installers, packages, upgrade, release, versions | PKG, TST, SEC | `docs\u002FRELEASE_RUNBOOK.md` |\n| Workflows, CI path rules | TST, SEC | `scripts\u002Fci_changes.py`, `.github\u002Fmanaged-paths.txt` |\n| Any pull request | PR | `.github\u002Fpull_request_template.md` |\n| TUI | TST, PERF | `defenseclaw-tui` skill |\n| Audit store schema, inventory or other on-disk state format | PKG, PERF, TST | `internal\u002Faudit\u002Fpending_migrations.go` |\n| `.proto` files or vendored code in `third_party\u002F` | TST, SEC, PKG | `third_party\u002Ftetragon\u002FREADME.md`; run `make proto-check` |\n| The macOS app (`macos\u002FDefenseClawMac`) | TST, SEC, PKG | `macos\u002FDefenseClawMac\u002FUPDATING.md`; run `make macos-app-test` |\n| The OpenClaw extension (`extensions\u002Fdefenseclaw`) | TST, SEC, PKG | `scripts\u002Fextension_runtime_fingerprint.py`; run `make ts-test` |\n| Scanner plugins, YARA or scanner policies, `skills\u002Fcodeguard` | POL, SEC, TST | `internal\u002Fpolicy\u002Ffirst_party_verify.go` (update the codeguard content signatures with `skills\u002Fcodeguard`) |\n| Kernel sensor, Tetragon, egress firewall | REQ, DEP, SEC, PERF | `docs-site\u002Fcontent\u002Fdocs\u002Fenterprise\u002Ftetragon.mdx`, `internal\u002Ffirewall` |\n| Splunk bridge or dashboards | OBS, DOC | `bundles\u002Fsplunk_o11y_dashboards` |\n| Connector | all that apply | `defenseclaw-add-connector` skill |\n\n## Stop and ask a maintainer\n\nOpen an issue or ask in the PR before writing code when the change would:\n\n| Trigger | Why it needs a decision |\n| --- | --- |\n| Change a default so it weakens security, or loosen a managed knob | Defaults reach every install; managed hosts must keep denying what policy denies |\n| Add a daemon, background service or listening port | New attack surface and per-user cost; managed listeners must stay on loopback |\n| Add a network egress (new host, new outbound call, new update or telemetry path) | Needs disclosure, an off switch and a firewall note |\n| Add a dependency or external requirement (module, extra, binary, VM, GPU, OS floor) | Disclosure, packaging and upgrade impact on every channel |\n| Change the config schema version or the migration chain | A one-sided bump locks out upgrades |\n| Touch signing, checksums, package formats or any bundle or digest format | Operators pin these; a change breaks verification and rollback |\n| Alter identity or privacy rules (who selects a profile, who can read policy) | Policy bypass or cross-user leak |\n| Touch the Secure Client profile paths from OSS or standalone work | They must stay byte-identical; maintainers run a separate invariance check |\n| Change shared code or a shared default from Secure Client work (gateway, hook paths, hookexec, guardrails, config loading, observability plan compile, installers, CI gates) | OSS and standalone must not change; a maintainer of the other modes signs off |\n| Add a management feature | Standalone managed only, never Secure Client; DefenseClaw ships only the local management contract |\n\n## Tier legend\n\n| Tier | ID prefix | Meaning |\n| --- | --- | --- |\n| MUST | `M-` | The PR is not mergeable without it: it breaks a gate, a security property, an upgrade path or an operator |\n| SHOULD | `S-` | Expected. A reviewer will ask. Skipping needs a one-line justification in the PR |\n| MAY | `O-` | Optional polish |\n\nIDs look like `M-CFG-1` (tier, area, number). Areas: CFG config, POL policy and guardrails, ID identity, DEP deployment modes and bundles, REQ external requirements, SBX sandbox, SCN scanners, judges and local models, TST testing, PERF performance and size, OBS observability and audit, DOC docs, SEC security, PKG packaging and upgrade, PR pull request hygiene.\n\n## References\n\n| File | Open when |\n| --- | --- |\n| `reference\u002Fchecklist.md` | Always, for the sections of your areas; the only place requirement IDs are defined |\n| `reference\u002Fpr-block.md` | Opening or updating a PR description |\n| `reference\u002Fconfig.md` | Adding or changing a config key, default, migration, environment variable, writer or reload path |\n| `reference\u002Fidentity-policy.md` | Rego, rule packs, guardrail profiles, assignments, identity sources, policy visibility |\n| `reference\u002Fdeployment-modes.md` | Behavior that differs per mode, feature switches, `enterprise.*` keys, lifecycle, MDM, bundle-at-once apply, upgrade and downgrade |\n| `reference\u002Frequirements-and-sandboxes.md` | Anything outside the wheel and binaries: Docker, VM, local model, GPU, extras, packages, OS floors, egress, sandboxes, scanners |\n| `reference\u002Fperformance.md` | Hook path, gateway request path, audit store, telemetry export, scanning, TUI refresh, new background work or binaries |\n| `reference\u002Fobservability-docs.md` | Audit actions, error codes, telemetry, redaction, docs-site pages, CLI doc references, changelog |\n| `reference\u002Fsecurity-packaging.md` | Secrets, permissions, fail-closed behavior, dependencies, licensing, release and package formats, upgrade path, dead code, opening a PR |\n| `reference\u002Ftesting.md` | Choosing which gates and tests to run, goldens, CI classification, installers, Windows or enterprise code |\n| `reference\u002Fmaintenance.md` | You change an architecture rule, add a requirement, or run the freshness check or quarterly sweep |\n| `CONTRIBUTING.md` | Toolchain versions and the common checks |\n| `docs\u002FTESTING.md` | Which gate covers which change, install scenarios, CI workflow map |\n| `.github\u002Fpull_request_template.md` | Writing the PR body |\n| `.claude\u002Fskills\u002Fdefenseclaw-add-connector\u002FSKILL.md` | The change adds or alters a connector |\n| `.claude\u002Fskills\u002Fdefenseclaw-tui\u002FSKILL.md` | The change touches `cli\u002Fdefenseclaw\u002Ftui` |\n\nFreshness: run `make skill-check` (or `python3 .claude\u002Fskills\u002Fdefenseclaw-develop\u002Fscripts\u002Fcheck_skill_fresh.py`) from the repo root. It fails when a cited path, make target or `@sym:` symbol no longer exists, when a `go test -run` pattern matches no test, when a requirement ID is cited but not defined in the checklist, or when a file exceeds its size limit.\n",{},"main","00e6d52cf34e7f32390000c712f11a91a2029ce0",".claude\u002Fskills\u002Fdefenseclaw-develop",166,"https:\u002F\u002Fgithub.com\u002Fcisco-ai-defense\u002Fdefenseclaw","https:\u002F\u002Fcisco-ai-defense.github.io\u002Fdefenseclaw\u002F","https:\u002F\u002Fgithub.com\u002Fcisco-ai-defense","https:\u002F\u002Fcisco-ai-defense.github.io\u002F","Open Source projects for the Cisco AI Defense community","2026-11-15 03:53:21",{"source":7,"skillName":5,"commands":36,"prompt":46,"zipAvailable":47},[37,40,43],{"tool":38,"command":39},"npx","npx skills add cisco-ai-defense\u002Fdefenseclaw --skill defenseclaw-develop",{"tool":41,"command":42},"bunx","bunx skills add cisco-ai-defense\u002Fdefenseclaw --skill defenseclaw-develop",{"tool":44,"command":45},"pnpm","pnpm dlx skills add cisco-ai-defense\u002Fdefenseclaw --skill defenseclaw-develop","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fcisco-ai-defense\u002Fdefenseclaw\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fdefenseclaw-develop\u002FSKILL.md",true,[49,55,59,63,67,71,75,79,83,87,91,95],{"path":50,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":53,"sourceHtmlUrl":54},"reference\u002Fchecklist.md","REFERENCE","参考文档",52024,"https:\u002F\u002Fgithub.com\u002Fcisco-ai-defense\u002Fdefenseclaw\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fdefenseclaw-develop\u002Freference\u002Fchecklist.md",{"path":56,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":57,"sourceHtmlUrl":58},"reference\u002Fconfig.md",12992,"https:\u002F\u002Fgithub.com\u002Fcisco-ai-defense\u002Fdefenseclaw\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fdefenseclaw-develop\u002Freference\u002Fconfig.md",{"path":60,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":61,"sourceHtmlUrl":62},"reference\u002Fdeployment-modes.md",15290,"https:\u002F\u002Fgithub.com\u002Fcisco-ai-defense\u002Fdefenseclaw\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fdefenseclaw-develop\u002Freference\u002Fdeployment-modes.md",{"path":64,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":65,"sourceHtmlUrl":66},"reference\u002Fidentity-policy.md",12874,"https:\u002F\u002Fgithub.com\u002Fcisco-ai-defense\u002Fdefenseclaw\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fdefenseclaw-develop\u002Freference\u002Fidentity-policy.md",{"path":68,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":69,"sourceHtmlUrl":70},"reference\u002Fmaintenance.md",6746,"https:\u002F\u002Fgithub.com\u002Fcisco-ai-defense\u002Fdefenseclaw\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fdefenseclaw-develop\u002Freference\u002Fmaintenance.md",{"path":72,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":73,"sourceHtmlUrl":74},"reference\u002Fobservability-docs.md",7208,"https:\u002F\u002Fgithub.com\u002Fcisco-ai-defense\u002Fdefenseclaw\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fdefenseclaw-develop\u002Freference\u002Fobservability-docs.md",{"path":76,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":77,"sourceHtmlUrl":78},"reference\u002Fperformance.md",12601,"https:\u002F\u002Fgithub.com\u002Fcisco-ai-defense\u002Fdefenseclaw\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fdefenseclaw-develop\u002Freference\u002Fperformance.md",{"path":80,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":81,"sourceHtmlUrl":82},"reference\u002Fpr-block.md",3367,"https:\u002F\u002Fgithub.com\u002Fcisco-ai-defense\u002Fdefenseclaw\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fdefenseclaw-develop\u002Freference\u002Fpr-block.md",{"path":84,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":85,"sourceHtmlUrl":86},"reference\u002Frequirements-and-sandboxes.md",11810,"https:\u002F\u002Fgithub.com\u002Fcisco-ai-defense\u002Fdefenseclaw\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fdefenseclaw-develop\u002Freference\u002Frequirements-and-sandboxes.md",{"path":88,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":89,"sourceHtmlUrl":90},"reference\u002Fsecurity-packaging.md",9250,"https:\u002F\u002Fgithub.com\u002Fcisco-ai-defense\u002Fdefenseclaw\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fdefenseclaw-develop\u002Freference\u002Fsecurity-packaging.md",{"path":92,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":93,"sourceHtmlUrl":94},"reference\u002Ftesting.md",11283,"https:\u002F\u002Fgithub.com\u002Fcisco-ai-defense\u002Fdefenseclaw\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fdefenseclaw-develop\u002Freference\u002Ftesting.md",{"path":96,"resourceType":97,"resourceTypeDesc":98,"sizeBytes":99,"sourceHtmlUrl":100},"scripts\u002Fcheck_skill_fresh.py","SCRIPT","脚本",12062,"https:\u002F\u002Fgithub.com\u002Fcisco-ai-defense\u002Fdefenseclaw\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fdefenseclaw-develop\u002Fscripts\u002Fcheck_skill_fresh.py",[102,118,126,134,155,169],{"skillNo":103,"name":104,"nameZh":6,"description":105,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":106,"categories":107,"keywords":108,"publishedAt":20},"01M6HC44X1K8NMF6YBHDZHS9PB","parity-fixture","Fixture for the rule-pack parity test of install admission and skill scan.","https:\u002F\u002Fgithub.com\u002Fcisco-ai-defense\u002Fdefenseclaw\u002Fblob\u002Fmain\u002Ftestdata\u002Frulepack_artifact_parity\u002Fskill\u002FSKILL.md",[],[109,110,111,112,113,114,115,116,117],"parity fixture","fixture","pack","for","test","skill scan","rule","scan","install",{"skillNo":119,"name":120,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":121,"categories":122,"keywords":123,"publishedAt":20},"01M6HC43H8K4P02PSEJ6R1DCAE","malicious-skill","https:\u002F\u002Fgithub.com\u002Fcisco-ai-defense\u002Fdefenseclaw\u002Fblob\u002Fmain\u002Ftest\u002Ffixtures\u002Fskills\u002Fmalicious-skill\u002FSKILL.md",[],[124,125],"malicious","malicious skill",{"skillNo":127,"name":128,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":129,"categories":130,"keywords":131,"publishedAt":20},"01M6HC425BT2XS2J16M5PBE6YX","clean-skill","https:\u002F\u002Fgithub.com\u002Fcisco-ai-defense\u002Fdefenseclaw\u002Fblob\u002Fmain\u002Ftest\u002Ffixtures\u002Fskills\u002Fclean-skill\u002FSKILL.md",[],[132,133],"clean","clean skill",{"skillNo":135,"name":136,"nameZh":6,"description":137,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":138,"categories":139,"keywords":140,"publishedAt":20},"01M6HC3W7VSGDPE5WR47ZNH04M","codeguard","Security-aware code generation — teaches the agent CodeGuard rules to write secure code by default","https:\u002F\u002Fgithub.com\u002Fcisco-ai-defense\u002Fdefenseclaw\u002Fblob\u002Fmain\u002Fskills\u002Fcodeguard\u002FSKILL.md",[],[136,141,142,143,144,145,146,147,25,148,149,150,151,152,153,154],"Code Generation","network","Rules","check","secure","write","default","self","local","generation","calls","gateway","security","code",{"skillNo":156,"name":157,"nameZh":6,"description":158,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":159,"categories":160,"keywords":161,"publishedAt":20},"01M6HC3SGQQZQZHNBF80QNTZNE","perf-hello","Prints a friendly greeting when the user asks to say hello.","https:\u002F\u002Fgithub.com\u002Fcisco-ai-defense\u002Fdefenseclaw\u002Fblob\u002Fmain\u002Fscripts\u002Fperf\u002Ffixtures\u002Fbenign-skill\u002FSKILL.md",[],[162,163,164,165,166,167,168],"perf hello","perf","hello","say hello","user","say","greeting",{"skillNo":170,"name":171,"nameZh":6,"description":172,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":173,"categories":174,"keywords":175,"publishedAt":20},"01M6HC3KVG7M9ENR2EGZSXF05T","defenseclaw-tui","Improve the DefenseClaw Textual TUI (cli\u002Fdefenseclaw\u002Ftui) consistently. Use it for any TUI work - adding or changing panels, picker and consequence modals, Setup wizards and the config editor, the hint bar and help overlay, command-palette rows, TUI tests, and TUI UX reviews or render checks. It holds the golden rules, the file map, recipes, the 80x24 layout budget, the test budget, and scripts that render the screen headlessly, run a fake-data demo, audit CLI coverage and list a panel's touchpoints. Don't use it for live certification on the Windows\u002FmacOS\u002FLinux test hosts (use defenseclaw-live-testing) or for EC2 dev-host operations (use defenseclaw-dev-host).","https:\u002F\u002Fgithub.com\u002Fcisco-ai-defense\u002Fdefenseclaw\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fdefenseclaw-tui\u002FSKILL.md",[],[176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195],"defenseclaw tui","tui","consequence","cli","run","ux","audit","improve","work","command","coverage","map","layout","host","panels","palette","render","reviews","hosts","testing"]