Pack Availability Guard
Before telling the user to run a skill from another project-local pack, check .agents/project.json.enabled_packs. If the target pack is not enabled, recommend $pack install <pack> instead of the target skill. Global skills are always valid. Skills from this same pack are valid because the current skill is already running from that pack.
Scale Audit — Enterprise Production Readiness
Invoke as $scale-audit.
Automated analysis that evaluates the codebase against research/enterprise-icp.md. Identifies gaps for enterprise deals — stakeholder journey coverage, compliance, infrastructure, and operations.
Prerequisites
research/enterprise-icp.md (or research/{app}/enterprise-icp.md) must exist. If not, tell the user to run $enterprise-icp first.
Workflow
0. App Scope Resolution (Monorepo Support)
Before checking prerequisites, determine the app scope:
- If
$ARGUMENTS specifies an app name matching a subdirectory of research/, use it.
- If
research/ contains subdirectories (excluding files), list them and ask the user which app to target. If only one subdirectory exists, use it automatically.
- If no subdirectories exist, proceed with flat structure (single-product mode).
When app scope {app} is active:
- Read/write research from
research/{app}/ instead of research/
- Read/write specs from
specs/{app}/ instead of specs/
- Also read
research/icp.md (cross-app overview) for broader context
1. Load Context & Evaluate
- Read
research/enterprise-icp.md (or research/{app}/enterprise-icp.md), research/icp.md (or research/{app}/icp.md), research/mvp-gap.md (or research/{app}/mvp-gap.md) (if they exist), codebase, and in-progress/advisory work from tasks/roadmap.md, tasks/todo.md, tasks/manual-todo.md, tasks/record-todo.md, and tasks/recurring-todo.md (if they exist).
- Evaluate the codebase across:
- Per-Persona Journey Coverage — Can each stakeholder complete their workflow?
- Onboarding Gaps — Self-serve, team, SSO-provisioned, migration, training
- Compliance Readiness — SOC 2, GDPR, HIPAA, encryption, secrets management
- Infrastructure Readiness — Multi-tenancy, scaling, DR, observability, CI/CD
- Operational Readiness — Incident response, SLA monitoring, support, customer success
- Escalated Startup Gaps — Unresolved MVP gaps now critical at enterprise scale
- Tag gaps:
hard-blocker, soft-blocker, or differentiator. Estimate effort (S/M/L/XL).
Deliverables
specs/scale-audit.md (or specs/{app}/scale-audit.md) — Gap analysis with stakeholder coverage matrix, compliance matrix, priority tags, and $ux-variations prompts for each unspecced gap
The output file must end with a ## Next Steps section containing a Recommended item and 2–4 other contextual options. Choose the recommendation by the first matching condition:
- IF any
hard-blocker lacks a full implementation spec: $ux-variations [top blocker] — explore solution directions for the highest-priority enterprise hard-blocker from specs/scale-audit.md.
- IF enterprise stakeholder journey context is missing:
$journey-map enterprise — map enterprise stakeholder journeys before sequencing build work.
- IF startup gaps escalated and
research/mvp-gap.md is missing or stale: $mvp-gap — re-evaluate startup readiness first.
- IF enterprise SLA or compliance gaps lack closure metrics:
$metrics — define metrics covering enterprise SLAs.
- OTHERWISE:
$roadmap — sequence the already-specced enterprise work into implementation phases.
Only recommend $roadmap as the primary next step when every hard-blocker already has a full spec or is already tracked in tasks/roadmap.md, tasks/todo.md, tasks/manual-todo.md, tasks/record-todo.md, or tasks/recurring-todo.md.
Task Classification
When this skill produces follow-up work, file it by execution semantics:
- Immediately actionable implementation or documentation work goes in
tasks/todo.md.
- Human-only external actions tied to automated steps go in
tasks/manual-todo.md with _(blocks: Step N.X)_ or _(after: Step N.X)_; repo edits, SDK wiring, generated assets, local commands, tests, audits, and authenticated CLI/API work stay in tasks/todo.md.
- One-time condition-gated records, baselines, or future measurements go in
tasks/record-todo.md with source, condition, non-blocking reason, evidence, and promotion rule.
- Cadence-based reviews, playtests, adoption checks, investor updates, retros, or docs-health checks go in
tasks/recurring-todo.md with cadence, owner/agent, next due, evidence path, and escalation conditions.
- Do not put non-blocking records or recurring obligations in
tasks/todo.md unless they have been explicitly promoted into current execution work.
Constraints
- Analysis only — do not make code changes.
- Every gap must cite specific evidence.
- Distinguish "first enterprise deal" from "100th enterprise deal."
- Include
$ux-variations <topic> prompts only for gaps lacking full specs.
## Next Steps must be the final section in the output file, with a recommended next step and 2–4 other contextual options.
Alignment Page
When this skill produces durable deliverables (research, specs, plans, reports, prototypes, or any document output), build a full-depth HTML alignment page following ALIGNMENT-PAGE.md in this skill's directory. Output: alignment/scale-audit-{topic}.html.
Default Shipping Contract
Follow the shared shipping contract convention in CLAUDE.md.
1---2name: scale-audit-33description: Evaluate codebase against enterprise ICP for production readiness, compliance, and multi-stakeholder journey coverage4---5
6## Pack Availability Guard
7
8Before telling the user to run a skill from another project-local pack, check `.agents/project.json.enabled_packs`. If the target pack is not enabled, recommend `$pack install <pack>` instead of the target skill. Global skills are always valid. Skills from this same pack are valid because the current skill is already running from that pack.
9
10# Scale Audit — Enterprise Production Readiness
11
12Invoke as `$scale-audit`.
13
14Automated analysis that evaluates the codebase against `research/enterprise-icp.md`. Identifies gaps for enterprise deals — stakeholder journey coverage, compliance, infrastructure, and operations.
15
16## Prerequisites
17
18`research/enterprise-icp.md` (or `research/{app}/enterprise-icp.md`) must exist. If not, tell the user to run `$enterprise-icp` first.
19
20## Workflow
21
22### 0. App Scope Resolution (Monorepo Support)
23
24Before checking prerequisites, determine the app scope:
25
261. If `$ARGUMENTS` specifies an app name matching a subdirectory of `research/`, use it.
272. If `research/` contains subdirectories (excluding files), list them and ask the user which app to target. If only one subdirectory exists, use it automatically.
283. If no subdirectories exist, proceed with flat structure (single-product mode).
29
30When app scope `{app}` is active:
31- Read/write research from `research/{app}/` instead of `research/`
32- Read/write specs from `specs/{app}/` instead of `specs/`
33- Also read `research/icp.md` (cross-app overview) for broader context
34
35### 1. Load Context & Evaluate
36
371. Read `research/enterprise-icp.md` (or `research/{app}/enterprise-icp.md`), `research/icp.md` (or `research/{app}/icp.md`), `research/mvp-gap.md` (or `research/{app}/mvp-gap.md`) (if they exist), codebase, and in-progress/advisory work from `tasks/roadmap.md`, `tasks/todo.md`, `tasks/manual-todo.md`, `tasks/record-todo.md`, and `tasks/recurring-todo.md` (if they exist).
382. Evaluate the codebase across:
39 - **Per-Persona Journey Coverage** — Can each stakeholder complete their workflow?
40 - **Onboarding Gaps** — Self-serve, team, SSO-provisioned, migration, training
41 - **Compliance Readiness** — SOC 2, GDPR, HIPAA, encryption, secrets management
42 - **Infrastructure Readiness** — Multi-tenancy, scaling, DR, observability, CI/CD
43 - **Operational Readiness** — Incident response, SLA monitoring, support, customer success
44 - **Escalated Startup Gaps** — Unresolved MVP gaps now critical at enterprise scale
453. Tag gaps: `hard-blocker`, `soft-blocker`, or `differentiator`. Estimate effort (S/M/L/XL).
46
47## Deliverables
48
49- `specs/scale-audit.md` (or `specs/{app}/scale-audit.md`) — Gap analysis with stakeholder coverage matrix, compliance matrix, priority tags, and `$ux-variations` prompts for each unspecced gap
50
51The output file must end with a `## Next Steps` section containing a **Recommended** item and 2–4 other contextual options. Choose the recommendation by the first matching condition:
52
531. IF any `hard-blocker` lacks a full implementation spec: `$ux-variations [top blocker]` — explore solution directions for the highest-priority enterprise hard-blocker from `specs/scale-audit.md`.
542. IF enterprise stakeholder journey context is missing: `$journey-map enterprise` — map enterprise stakeholder journeys before sequencing build work.
553. IF startup gaps escalated and `research/mvp-gap.md` is missing or stale: `$mvp-gap` — re-evaluate startup readiness first.
564. IF enterprise SLA or compliance gaps lack closure metrics: `$metrics` — define metrics covering enterprise SLAs.
575. OTHERWISE: `$roadmap` — sequence the already-specced enterprise work into implementation phases.
58
59Only recommend `$roadmap` as the primary next step when every hard-blocker already has a full spec or is already tracked in `tasks/roadmap.md`, `tasks/todo.md`, `tasks/manual-todo.md`, `tasks/record-todo.md`, or `tasks/recurring-todo.md`.
60
61## Task Classification
62
63When this skill produces follow-up work, file it by execution semantics:
64
65- Immediately actionable implementation or documentation work goes in `tasks/todo.md`.
66- Human-only external actions tied to automated steps go in `tasks/manual-todo.md` with `_(blocks: Step N.X)_` or `_(after: Step N.X)_`; repo edits, SDK wiring, generated assets, local commands, tests, audits, and authenticated CLI/API work stay in `tasks/todo.md`.
67- One-time condition-gated records, baselines, or future measurements go in `tasks/record-todo.md` with source, condition, non-blocking reason, evidence, and promotion rule.
68- Cadence-based reviews, playtests, adoption checks, investor updates, retros, or docs-health checks go in `tasks/recurring-todo.md` with cadence, owner/agent, next due, evidence path, and escalation conditions.
69- Do not put non-blocking records or recurring obligations in `tasks/todo.md` unless they have been explicitly promoted into current execution work.
70
71## Constraints
72
73- Analysis only — do not make code changes.
74- Every gap must cite specific evidence.
75- Distinguish "first enterprise deal" from "100th enterprise deal."
76- Include `$ux-variations <topic>` prompts only for gaps lacking full specs.
77- `## Next Steps` must be the final section in the output file, with a recommended next step and 2–4 other contextual options.
78
79## Alignment Page
80
81When this skill produces durable deliverables (research, specs, plans, reports, prototypes, or any document output), build a full-depth HTML alignment page following `ALIGNMENT-PAGE.md` in this skill's directory. Output: `alignment/scale-audit-{topic}.html`.
82
83## Default Shipping Contract
84
85Follow the shared shipping contract convention in CLAUDE.md.