scale-audit
Evaluate codebase against enterprise ICP for production readiness, compliance, and multi-stakeholder journey coverage
- License 许可
- MIT
- 最近更新
- 2026-11-10
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- scale-audit
- type
- analysis
- version
- v0.1
- description
- Evaluate codebase against enterprise ICP for production readiness, compliance, and multi-stakeholder journey coverage
03 SKILL.md 正文
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
$ARGUMENTSspecifies an app name matching a subdirectory ofresearch/, 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 ofresearch/ - Read/write specs from
specs/{app}/instead ofspecs/ - Also read
research/icp.md(cross-app overview) for broader context
1. Load Context & Evaluate
- Read
research/enterprise-icp.md(orresearch/{app}/enterprise-icp.md),research/icp.md(orresearch/{app}/icp.md),research/mvp-gap.md(orresearch/{app}/mvp-gap.md) (if they exist), codebase, and in-progress/advisory work fromtasks/roadmap.md,tasks/todo.md,tasks/manual-todo.md,tasks/record-todo.md, andtasks/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, ordifferentiator. Estimate effort (S/M/L/XL).
Deliverables
specs/scale-audit.md(orspecs/{app}/scale-audit.md) — Gap analysis with stakeholder coverage matrix, compliance matrix, priority tags, and$ux-variationsprompts 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-blockerlacks a full implementation spec:$ux-variations [top blocker]— explore solution directions for the highest-priority enterprise hard-blocker fromspecs/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.mdis 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.mdwith_(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 intasks/todo.md. - One-time condition-gated records, baselines, or future measurements go in
tasks/record-todo.mdwith 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.mdwith cadence, owner/agent, next due, evidence path, and escalation conditions. - Do not put non-blocking records or recurring obligations in
tasks/todo.mdunless 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 Stepsmust 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.
04 同仓库更多 Skills
source-checkout-allowed
Valid source-checkout-only fixture.
deck-install-valid
Valid deck install fixture.
codex-pack-guard-valid
Valid Codex Pack Availability Guard fixture.
codex-missing-skill-valid
Valid Codex missing skill fallback fixture.
codex-base-skill-fallback-valid
Valid Codex base skill fallback fixture.
claude-pack-guard-valid
Valid Claude Pack Availability Guard fixture.