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.5
- description
- Evaluate codebase against enterprise ICP for production readiness, compliance, and multi-stakeholder journey coverage
- visual_tier
- visual
- context_intake
- artifact_only
- required_conventions
- [ "alignment-page" ]
02 资源文件 3
- 参考文档agents/openai.yaml250 B
- 参考文档ALIGNMENT-PAGE.md52.8 KB
- 参考文档CHANGELOG.md1.4 KB
03 SKILL.md 正文
Pack Availability Guard
When recommending a skill from another pack, verify the target pack is installed via .agents/project.json enabled_packs. If it is not enabled, recommend npx skillpacks install <pack> from the project shell. After install, tell Codex users to start a fresh Codex CLI session if the $ skill list remains stale. Only the currently running skill and skills verified available in the active session or project-local install state are directly recommendable. For unavailable pack skills, recommend npx skillpacks install <pack-or-skill>; for unavailable base skills, recommend npx skillpacks init before the skill.
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/{slug}/enterprise-icp.md) must exist. If not, tell the user to run $enterprise-icp first.
Process
0. Product-Path Scope Resolution
Resolve research scope by product path before using code or app structure as a hint:
- If
$ARGUMENTSnames a non-archivedresearch/{slug}/directory or a product-path ID whosescope_pathpoints there, use that path. Treat{slug}as the product/app name, not the ICP, audience, or segment label. - If
$ARGUMENTSnames onlyresearch/_archive/{slug}/or a manifest entry withstatus: archivedor legacystatus: abandoned, stop and warn that the path is archived; do not write or update scoped outputs there. - Read
research/.progress.yamlwhen present. Normalize legacyactive_pathtoactive_pathson read and write backactive_pathson manifest updates. Treat legacyabandonedasarchived; excludearchived,abandoned,deferred,revisit_candidate,promoted, and anyscope_pathunderresearch/_archive/from active target selection. - If active product paths exist in the manifest, use those paths. If multiple active paths exist, ask which one to target unless this skill explicitly supports cross-path output.
- If no active manifest target exists, list non-archived product directories under
research/, excludingresearch/_archive/and dot directories. Auto-select only when exactly one exists; ask when multiple exist. - If no product directories exist, use flat
research/single-product mode. - Detect monorepo/app/package structure only as a secondary hint. Suggest creating a missing
research/{slug}/product path when code clearly exposes an app, but do not require code or monorepo detection before usingresearch/{slug}/.
When product path {slug} is active, read and write research under research/{slug}/, specs under specs/{slug}/, and treat top-level research/*.md files as flat-mode documents or cross-path summaries.
1. Load Context & Evaluate
- Read
research/enterprise-icp.md(orresearch/{slug}/enterprise-icp.md),research/icp.md(orresearch/{slug}/icp.md),research/mvp-gap.md(orresearch/{slug}/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/{slug}/scale-audit.md) — Gap analysis with stakeholder coverage matrix, compliance matrix, priority tags, and$user-flow-mapprompts for each unspecced flow/design-shape 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 flow/design shape or a full implementation spec:$user-flow-map [top blocker]— map the highest-priority enterprise blocker into concrete screen flow, decisions, branches, states, and recovery paths before UI/layout planning. - 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
$user-flow-map <topic>prompts for gaps lacking flow/design shape or full specs. Use$ux-variations --layout-mode <topic>only when flow and UI requirements already exist but layout alternatives are missing. ## Next Stepsmust be the final section in the output file, with a recommended next step and 2–4 other contextual options.
Alignment Page
Follow the shared alignment-page convention via the packaged convention resolver; output path is 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.