@nurix/etna 0.19.41 โ 0.19.43
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/etna.js +14 -0
- package/data/harness-index.json +5 -1
- package/data/harnesses/apollo/.prettierignore +29 -0
- package/data/harnesses/apollo/.prettierrc.json +3 -0
- package/data/harnesses/apollo/.vscode/settings.json +19 -0
- package/data/harnesses/apollo/CLAUDE.md +162 -0
- package/data/harnesses/apollo/agents/brainstorm.md +144 -0
- package/data/harnesses/apollo/agents/change-review.md +251 -0
- package/data/harnesses/apollo/agents/lld-mode.md +56 -0
- package/data/harnesses/apollo/agents/maintenance.md +229 -0
- package/data/harnesses/apollo/agents/performance-review.md +223 -0
- package/data/harnesses/apollo/agents/retro.md +46 -0
- package/data/harnesses/apollo/codex/agents/brainstorm.toml +142 -0
- package/data/harnesses/apollo/codex/agents/change-review.toml +249 -0
- package/data/harnesses/apollo/codex/agents/lld-mode.toml +52 -0
- package/data/harnesses/apollo/codex/agents/maintenance.toml +228 -0
- package/data/harnesses/apollo/codex/agents/performance-review.toml +222 -0
- package/data/harnesses/apollo/codex/agents/retro.toml +45 -0
- package/data/harnesses/apollo/docs/README.md +28 -0
- package/data/harnesses/apollo/docs/history/CHANGELOG.md +26 -0
- package/data/harnesses/apollo/docs/history/backlog.md +19 -0
- package/data/harnesses/apollo/docs/memory/main.md +15 -0
- package/data/harnesses/apollo/docs/structure.md +54 -0
- package/data/harnesses/apollo/harness.json +18 -0
- package/data/harnesses/apollo/hooks/generate-ownership-index.mjs +148 -0
- package/data/harnesses/apollo/hooks/hooks.json +16 -0
- package/data/harnesses/apollo/rules/changelog.md +19 -0
- package/data/harnesses/apollo/rules/database.md +123 -0
- package/data/harnesses/apollo/rules/express.md +33 -0
- package/data/harnesses/apollo/rules/frontend.md +32 -0
- package/data/harnesses/apollo/rules/general.md +62 -0
- package/data/harnesses/apollo/rules/nomenclature.md +34 -0
- package/data/harnesses/apollo/rules/pnpm.md +57 -0
- package/data/harnesses/apollo/rules/testing.md +23 -0
- package/data/harnesses/apollo/rules/verification.md +67 -0
- package/data/harnesses/apollo/skills/boundary/SKILL.md +69 -0
- package/data/harnesses/apollo/skills/boundary/references/index.md +16 -0
- package/data/harnesses/apollo/skills/boundary/references/mechanisms.md +99 -0
- package/data/harnesses/apollo/skills/boundary/references/packs/async-messaging.md +81 -0
- package/data/harnesses/apollo/skills/boundary/references/packs/auth.md +93 -0
- package/data/harnesses/apollo/skills/boundary/references/packs/build-config-runtime.md +93 -0
- package/data/harnesses/apollo/skills/boundary/references/packs/cloudflare.md +93 -0
- package/data/harnesses/apollo/skills/boundary/references/packs/frontend.md +93 -0
- package/data/harnesses/apollo/skills/boundary/references/packs/generic-tail.md +55 -0
- package/data/harnesses/apollo/skills/boundary/references/packs/persistence.md +93 -0
- package/data/harnesses/apollo/skills/boundary/references/packs/wire-api.md +87 -0
- package/data/harnesses/apollo/skills/brainstorm/README.md +56 -0
- package/data/harnesses/apollo/skills/brainstorm/SKILL.md +173 -0
- package/data/harnesses/apollo/skills/brainstorm/references/doctrine.md +98 -0
- package/data/harnesses/apollo/skills/brainstorm/references/harvest.md +86 -0
- package/data/harnesses/apollo/skills/brainstorm/references/session-schema.md +186 -0
- package/data/harnesses/apollo/skills/brainstorm/scripts/detector.mjs +460 -0
- package/data/harnesses/apollo/skills/design/SKILL.md +100 -0
- package/data/harnesses/apollo/skills/design/components/charts.md +76 -0
- package/data/harnesses/apollo/skills/design/components/collections.md +132 -0
- package/data/harnesses/apollo/skills/design/components/feedback.md +47 -0
- package/data/harnesses/apollo/skills/design/components/hooks.md +35 -0
- package/data/harnesses/apollo/skills/design/components/index.md +143 -0
- package/data/harnesses/apollo/skills/design/components/inputs.md +327 -0
- package/data/harnesses/apollo/skills/design/components/layout.md +52 -0
- package/data/harnesses/apollo/skills/design/components/media.md +66 -0
- package/data/harnesses/apollo/skills/design/components/motion.md +82 -0
- package/data/harnesses/apollo/skills/design/components/navigation.md +29 -0
- package/data/harnesses/apollo/skills/design/components/overlays.md +72 -0
- package/data/harnesses/apollo/skills/design/components/setup.md +40 -0
- package/data/harnesses/apollo/skills/design/components/typography.md +46 -0
- package/data/harnesses/apollo/skills/design/components/utils.md +37 -0
- package/data/harnesses/apollo/skills/design/data/blueprints/browse.md +38 -0
- package/data/harnesses/apollo/skills/design/data/blueprints/creation-flow.md +38 -0
- package/data/harnesses/apollo/skills/design/data/blueprints/dashboard.md +38 -0
- package/data/harnesses/apollo/skills/design/data/blueprints/grid.md +38 -0
- package/data/harnesses/apollo/skills/design/data/blueprints/queue.md +38 -0
- package/data/harnesses/apollo/skills/design/data/blueprints/record-detail.md +38 -0
- package/data/harnesses/apollo/skills/design/data/blueprints/settings.md +38 -0
- package/data/harnesses/apollo/skills/design/data/chart-styling/Readme.md +33 -0
- package/data/harnesses/apollo/skills/design/data/chart-styling/carbon-accessible-alert-semantic.md +19 -0
- package/data/harnesses/apollo/skills/design/data/chart-styling/carbon-monochrome-sequential-trend.md +19 -0
- package/data/harnesses/apollo/skills/design/data/chart-styling/datadog-classic-six-aligned.md +19 -0
- package/data/harnesses/apollo/skills/design/data/chart-styling/datawrapper-tiered-gray-hierarchy.md +19 -0
- package/data/harnesses/apollo/skills/design/data/chart-styling/econ-red-rule-horizontal.md +19 -0
- package/data/harnesses/apollo/skills/design/data/chart-styling/financial-diverging-threshold-overlay.md +19 -0
- package/data/harnesses/apollo/skills/design/data/chart-styling/ft-vocabulary-ranked-muted.md +19 -0
- package/data/harnesses/apollo/skills/design/data/chart-styling/grafana-dark-threshold-bands.md +19 -0
- package/data/harnesses/apollo/skills/design/data/chart-styling/material-rounded-explicit-label.md +19 -0
- package/data/harnesses/apollo/skills/design/data/chart-styling/nyt-ghost-grid-direct-label.md +19 -0
- package/data/harnesses/apollo/skills/design/data/chart-styling/plot-currentcolor-inherit.md +19 -0
- package/data/harnesses/apollo/skills/design/data/chart-styling/saas-gradient-glow-area.md +19 -0
- package/data/harnesses/apollo/skills/design/data/chart-styling/shadcn-composable-css-vars.md +19 -0
- package/data/harnesses/apollo/skills/design/data/charts/census.csv +58 -0
- package/data/harnesses/apollo/skills/design/data/checklists/browse.md +21 -0
- package/data/harnesses/apollo/skills/design/data/checklists/creation-flow.md +20 -0
- package/data/harnesses/apollo/skills/design/data/checklists/dashboard.md +21 -0
- package/data/harnesses/apollo/skills/design/data/checklists/grid.md +21 -0
- package/data/harnesses/apollo/skills/design/data/checklists/queue.md +21 -0
- package/data/harnesses/apollo/skills/design/data/checklists/record-detail.md +21 -0
- package/data/harnesses/apollo/skills/design/data/checklists/settings.md +21 -0
- package/data/harnesses/apollo/skills/design/data/chrome/board-column.md +68 -0
- package/data/harnesses/apollo/skills/design/data/chrome/data-table.md +63 -0
- package/data/harnesses/apollo/skills/design/data/chrome/side-panel.md +60 -0
- package/data/harnesses/apollo/skills/design/data/chrome/sidebar.md +78 -0
- package/data/harnesses/apollo/skills/design/data/chrome/stat-cards.md +62 -0
- package/data/harnesses/apollo/skills/design/data/chrome/topbar.md +65 -0
- package/data/harnesses/apollo/skills/design/data/color/accent-presets.md +90 -0
- package/data/harnesses/apollo/skills/design/data/color/aesop-earth-mute.md +91 -0
- package/data/harnesses/apollo/skills/design/data/color/arc-peach-play.md +90 -0
- package/data/harnesses/apollo/skills/design/data/color/attio-hunter-teal.md +90 -0
- package/data/harnesses/apollo/skills/design/data/color/carbon-cyan-signal.md +90 -0
- package/data/harnesses/apollo/skills/design/data/color/clay-parchment.md +90 -0
- package/data/harnesses/apollo/skills/design/data/color/duolingo-feather.md +90 -0
- package/data/harnesses/apollo/skills/design/data/color/geist-mono-signal.md +90 -0
- package/data/harnesses/apollo/skills/design/data/color/linear-graphite-violet.md +90 -0
- package/data/harnesses/apollo/skills/design/data/color/mercury-onyx-cobalt.md +90 -0
- package/data/harnesses/apollo/skills/design/data/color/notion-paper-ink.md +90 -0
- package/data/harnesses/apollo/skills/design/data/color/radix-slate-iris.md +90 -0
- package/data/harnesses/apollo/skills/design/data/color/raycast-void-spectrum.md +90 -0
- package/data/harnesses/apollo/skills/design/data/color/spectrum-celery-fuchsia.md +90 -0
- package/data/harnesses/apollo/skills/design/data/color/stripe-blurple-ruby.md +90 -0
- package/data/harnesses/apollo/skills/design/data/color/superhuman-cod-picton.md +89 -0
- package/data/harnesses/apollo/skills/design/data/corpora/operations-review/companies.csv +15 -0
- package/data/harnesses/apollo/skills/design/data/corpora/operations-review/corpus.md +87 -0
- package/data/harnesses/apollo/skills/design/data/corpora/operations-review/people.csv +25 -0
- package/data/harnesses/apollo/skills/design/data/corpora/procurement-approvals/companies.csv +15 -0
- package/data/harnesses/apollo/skills/design/data/corpora/procurement-approvals/corpus.md +83 -0
- package/data/harnesses/apollo/skills/design/data/corpora/procurement-approvals/people.csv +25 -0
- package/data/harnesses/apollo/skills/design/data/corpora/revenue-analytics/companies.csv +15 -0
- package/data/harnesses/apollo/skills/design/data/corpora/revenue-analytics/corpus.md +89 -0
- package/data/harnesses/apollo/skills/design/data/corpora/revenue-analytics/people.csv +25 -0
- package/data/harnesses/apollo/skills/design/data/elevation/ant-design-directional-shadow.md +19 -0
- package/data/harnesses/apollo/skills/design/data/elevation/apple-liquid-glass-material.md +18 -0
- package/data/harnesses/apollo/skills/design/data/elevation/atlassian-surface-shadow-pairing.md +20 -0
- package/data/harnesses/apollo/skills/design/data/elevation/fluent-2-key-ambient-ramp.md +20 -0
- package/data/harnesses/apollo/skills/design/data/elevation/github-primer-sparing-shadow.md +19 -0
- package/data/harnesses/apollo/skills/design/data/elevation/ibm-carbon-layer-and-border.md +19 -0
- package/data/harnesses/apollo/skills/design/data/elevation/linear-dark-surface-ladder.md +17 -0
- package/data/harnesses/apollo/skills/design/data/elevation/material-2-key-ambient-dp-ramp.md +19 -0
- package/data/harnesses/apollo/skills/design/data/elevation/material-3-tonal-elevation.md +21 -0
- package/data/harnesses/apollo/skills/design/data/elevation/neobrutalist-hard-offset.md +19 -0
- package/data/harnesses/apollo/skills/design/data/elevation/neumorphic-soft-dual-shadow.md +18 -0
- package/data/harnesses/apollo/skills/design/data/elevation/notion-warm-minimal-hairline.md +17 -0
- package/data/harnesses/apollo/skills/design/data/elevation/polaris-elevation-inset-bevel.md +21 -0
- package/data/harnesses/apollo/skills/design/data/elevation/radix-themes-alpha-ring-scale.md +19 -0
- package/data/harnesses/apollo/skills/design/data/elevation/shadcn-neutral-derived-radius.md +19 -0
- package/data/harnesses/apollo/skills/design/data/elevation/stripe-brand-tinted-dual-shadow.md +18 -0
- package/data/harnesses/apollo/skills/design/data/elevation/tailwind-default-utility-scale.md +19 -0
- package/data/harnesses/apollo/skills/design/data/elevation/vercel-geist-shadow-as-border.md +20 -0
- package/data/harnesses/apollo/skills/design/data/gradients/amber-attention-fill.md +16 -0
- package/data/harnesses/apollo/skills/design/data/gradients/cloud-shadow-wash.md +16 -0
- package/data/harnesses/apollo/skills/design/data/gradients/confident-lavender-wash.md +16 -0
- package/data/harnesses/apollo/skills/design/data/gradients/ember-ship-flare.md +18 -0
- package/data/harnesses/apollo/skills/design/data/gradients/full-metal-wash.md +16 -0
- package/data/harnesses/apollo/skills/design/data/gradients/indigo-ruby-cta-band.md +18 -0
- package/data/harnesses/apollo/skills/design/data/gradients/linear-graphite-wash.md +18 -0
- package/data/harnesses/apollo/skills/design/data/gradients/marble-quartz-wash.md +16 -0
- package/data/harnesses/apollo/skills/design/data/gradients/midnight-aurora-panel.md +16 -0
- package/data/harnesses/apollo/skills/design/data/gradients/neutral-volume-fill.md +16 -0
- package/data/harnesses/apollo/skills/design/data/gradients/revenue-uptrend-fill.md +16 -0
- package/data/harnesses/apollo/skills/design/data/gradients/risk-decline-fill.md +16 -0
- package/data/harnesses/apollo/skills/design/data/gradients/signal-blue-develop.md +18 -0
- package/data/harnesses/apollo/skills/design/data/gradients/slate-mist-wash.md +16 -0
- package/data/harnesses/apollo/skills/design/data/gradients/stripe-atmosphere-mesh.md +18 -0
- package/data/harnesses/apollo/skills/design/data/gradients/teal-signal-accent.md +16 -0
- package/data/harnesses/apollo/skills/design/data/gradients/violet-magenta-promo.md +16 -0
- package/data/harnesses/apollo/skills/design/data/iconography.md +199 -0
- package/data/harnesses/apollo/skills/design/data/motion/accordion-expand.md +18 -0
- package/data/harnesses/apollo/skills/design/data/motion/destructive-hold-confirm.md +18 -0
- package/data/harnesses/apollo/skills/design/data/motion/drag-dismiss-momentum.md +18 -0
- package/data/harnesses/apollo/skills/design/data/motion/empty-state-arrive.md +18 -0
- package/data/harnesses/apollo/skills/design/data/motion/hover-lift.md +18 -0
- package/data/harnesses/apollo/skills/design/data/motion/modal-center-arrive.md +18 -0
- package/data/harnesses/apollo/skills/design/data/motion/number-ticker-roll.md +18 -0
- package/data/harnesses/apollo/skills/design/data/motion/onboarding-bounce.md +18 -0
- package/data/harnesses/apollo/skills/design/data/motion/panel-slide.md +18 -0
- package/data/harnesses/apollo/skills/design/data/motion/press-feedback.md +18 -0
- package/data/harnesses/apollo/skills/design/data/motion/progress-linear-loop.md +18 -0
- package/data/harnesses/apollo/skills/design/data/motion/route-crossfade.md +18 -0
- package/data/harnesses/apollo/skills/design/data/motion/rubber-band-overscroll.md +18 -0
- package/data/harnesses/apollo/skills/design/data/motion/skeleton-shimmer.md +18 -0
- package/data/harnesses/apollo/skills/design/data/motion/stagger-arrive.md +18 -0
- package/data/harnesses/apollo/skills/design/data/motion/toast-enter-stack.md +18 -0
- package/data/harnesses/apollo/skills/design/data/motion/tooltip-chain-instant.md +18 -0
- package/data/harnesses/apollo/skills/design/data/motion/trigger-anchored-reveal.md +18 -0
- package/data/harnesses/apollo/skills/design/data/tells.csv +34 -0
- package/data/harnesses/apollo/skills/design/data/typography/anton-work-sans.md +17 -0
- package/data/harnesses/apollo/skills/design/data/typography/archivo-black-archivo.md +17 -0
- package/data/harnesses/apollo/skills/design/data/typography/bitter-karla.md +17 -0
- package/data/harnesses/apollo/skills/design/data/typography/dm-serif-dm-sans.md +17 -0
- package/data/harnesses/apollo/skills/design/data/typography/fraunces-inter.md +17 -0
- package/data/harnesses/apollo/skills/design/data/typography/geist-geist-mono.md +17 -0
- package/data/harnesses/apollo/skills/design/data/typography/hubot-sans-mona-sans.md +17 -0
- package/data/harnesses/apollo/skills/design/data/typography/ibm-plex-sans-operator-single-family.md +17 -0
- package/data/harnesses/apollo/skills/design/data/typography/instrument-serif-instrument-sans.md +17 -0
- package/data/harnesses/apollo/skills/design/data/typography/inter-operator-single-family.md +17 -0
- package/data/harnesses/apollo/skills/design/data/typography/libre-baskerville-libre-franklin.md +17 -0
- package/data/harnesses/apollo/skills/design/data/typography/newsreader-inter.md +17 -0
- package/data/harnesses/apollo/skills/design/data/typography/playfair-display-source-sans.md +17 -0
- package/data/harnesses/apollo/skills/design/data/typography/public-sans-operator-single-family.md +17 -0
- package/data/harnesses/apollo/skills/design/data/typography/sohne-inter-fintech.md +17 -0
- package/data/harnesses/apollo/skills/design/data/typography/source-serif-source-sans.md +17 -0
- package/data/harnesses/apollo/skills/design/data/typography/space-grotesk-work-sans-space-mono.md +17 -0
- package/data/harnesses/apollo/skills/design/data/typography/spectral-manrope.md +17 -0
- package/data/harnesses/apollo/skills/design/data/voices/bright-collaborator.md +29 -0
- package/data/harnesses/apollo/skills/design/data/voices/direct-operator.md +29 -0
- package/data/harnesses/apollo/skills/design/data/voices/earnest-helper.md +29 -0
- package/data/harnesses/apollo/skills/design/data/voices/editorial-composed.md +29 -0
- package/data/harnesses/apollo/skills/design/data/voices/quiet-concierge.md +29 -0
- package/data/harnesses/apollo/skills/design/data/voices/warm-guide.md +29 -0
- package/data/harnesses/apollo/skills/design/design-md/SCHEMA.md +179 -0
- package/data/harnesses/apollo/skills/design/design-md/index.csv +67 -0
- package/data/harnesses/apollo/skills/design/design-md/library/airbnb.md +207 -0
- package/data/harnesses/apollo/skills/design/design-md/library/airtable.md +205 -0
- package/data/harnesses/apollo/skills/design/design-md/library/anthropic-claude.md +203 -0
- package/data/harnesses/apollo/skills/design/design-md/library/apple.md +206 -0
- package/data/harnesses/apollo/skills/design/design-md/library/binance.md +210 -0
- package/data/harnesses/apollo/skills/design/design-md/library/bmw.md +210 -0
- package/data/harnesses/apollo/skills/design/design-md/library/cal.md +209 -0
- package/data/harnesses/apollo/skills/design/design-md/library/clay.md +204 -0
- package/data/harnesses/apollo/skills/design/design-md/library/clickhouse.md +205 -0
- package/data/harnesses/apollo/skills/design/design-md/library/cohere.md +205 -0
- package/data/harnesses/apollo/skills/design/design-md/library/coinbase.md +198 -0
- package/data/harnesses/apollo/skills/design/design-md/library/composio.md +198 -0
- package/data/harnesses/apollo/skills/design/design-md/library/cursor.md +197 -0
- package/data/harnesses/apollo/skills/design/design-md/library/elevenlabs.md +199 -0
- package/data/harnesses/apollo/skills/design/design-md/library/expo.md +200 -0
- package/data/harnesses/apollo/skills/design/design-md/library/figma.md +199 -0
- package/data/harnesses/apollo/skills/design/design-md/library/framer.md +202 -0
- package/data/harnesses/apollo/skills/design/design-md/library/hashicorp.md +205 -0
- package/data/harnesses/apollo/skills/design/design-md/library/ibm.md +205 -0
- package/data/harnesses/apollo/skills/design/design-md/library/intercom.md +204 -0
- package/data/harnesses/apollo/skills/design/design-md/library/kraken.md +200 -0
- package/data/harnesses/apollo/skills/design/design-md/library/linear-app.md +198 -0
- package/data/harnesses/apollo/skills/design/design-md/library/lovable.md +199 -0
- package/data/harnesses/apollo/skills/design/design-md/library/meta.md +204 -0
- package/data/harnesses/apollo/skills/design/design-md/library/minimax.md +204 -0
- package/data/harnesses/apollo/skills/design/design-md/library/mintlify.md +210 -0
- package/data/harnesses/apollo/skills/design/design-md/library/miro.md +209 -0
- package/data/harnesses/apollo/skills/design/design-md/library/mistral-ai.md +201 -0
- package/data/harnesses/apollo/skills/design/design-md/library/mongodb.md +201 -0
- package/data/harnesses/apollo/skills/design/design-md/library/notion.md +204 -0
- package/data/harnesses/apollo/skills/design/design-md/library/nvidia.md +215 -0
- package/data/harnesses/apollo/skills/design/design-md/library/ollama.md +213 -0
- package/data/harnesses/apollo/skills/design/design-md/library/opencode-ai.md +216 -0
- package/data/harnesses/apollo/skills/design/design-md/library/posthog.md +218 -0
- package/data/harnesses/apollo/skills/design/design-md/library/raycast.md +214 -0
- package/data/harnesses/apollo/skills/design/design-md/library/replicate.md +202 -0
- package/data/harnesses/apollo/skills/design/design-md/library/resend.md +203 -0
- package/data/harnesses/apollo/skills/design/design-md/library/revolut.md +203 -0
- package/data/harnesses/apollo/skills/design/design-md/library/runwayml.md +203 -0
- package/data/harnesses/apollo/skills/design/design-md/library/sanity.md +200 -0
- package/data/harnesses/apollo/skills/design/design-md/library/sentry.md +201 -0
- package/data/harnesses/apollo/skills/design/design-md/library/shopify.md +202 -0
- package/data/harnesses/apollo/skills/design/design-md/library/slack.md +202 -0
- package/data/harnesses/apollo/skills/design/design-md/library/spacex.md +206 -0
- package/data/harnesses/apollo/skills/design/design-md/library/spotify.md +206 -0
- package/data/harnesses/apollo/skills/design/design-md/library/stripe.md +196 -0
- package/data/harnesses/apollo/skills/design/design-md/library/supabase.md +196 -0
- package/data/harnesses/apollo/skills/design/design-md/library/superhuman.md +194 -0
- package/data/harnesses/apollo/skills/design/design-md/library/tesla.md +198 -0
- package/data/harnesses/apollo/skills/design/design-md/library/theverge.md +199 -0
- package/data/harnesses/apollo/skills/design/design-md/library/together-ai.md +193 -0
- package/data/harnesses/apollo/skills/design/design-md/library/uber.md +195 -0
- package/data/harnesses/apollo/skills/design/design-md/library/vercel.md +195 -0
- package/data/harnesses/apollo/skills/design/design-md/library/voltagent.md +197 -0
- package/data/harnesses/apollo/skills/design/design-md/library/warp.md +196 -0
- package/data/harnesses/apollo/skills/design/design-md/library/webflow.md +197 -0
- package/data/harnesses/apollo/skills/design/design-md/library/wired.md +197 -0
- package/data/harnesses/apollo/skills/design/design-md/library/wise.md +198 -0
- package/data/harnesses/apollo/skills/design/design-md/library/x-ai.md +199 -0
- package/data/harnesses/apollo/skills/design/design-md/library/zapier.md +198 -0
- package/data/harnesses/apollo/skills/design/design-md/nurix.md +214 -0
- package/data/harnesses/apollo/skills/design/design-md/variants/editorial-luxury.md +184 -0
- package/data/harnesses/apollo/skills/design/design-md/variants/expressive-saas.md +216 -0
- package/data/harnesses/apollo/skills/design/design-md/variants/quiet-premium.md +211 -0
- package/data/harnesses/apollo/skills/design/design-md/variants/terse-dense-operator.md +212 -0
- package/data/harnesses/apollo/skills/design/design-md/variants/warm-approachable.md +216 -0
- package/data/harnesses/apollo/skills/design/references/compose.md +23 -0
- package/data/harnesses/apollo/skills/design/references/content.md +28 -0
- package/data/harnesses/apollo/skills/design/references/emission.md +21 -0
- package/data/harnesses/apollo/skills/design/references/existing-apps.md +27 -0
- package/data/harnesses/apollo/skills/design/references/intake.md +36 -0
- package/data/harnesses/apollo/skills/design/references/object-pass.md +24 -0
- package/data/harnesses/apollo/skills/design/references/ship-gate.md +29 -0
- package/data/harnesses/apollo/skills/design/references/ux-patterns/Readme.md +195 -0
- package/data/harnesses/apollo/skills/design/references/ux-patterns/ai-layer.md +49 -0
- package/data/harnesses/apollo/skills/design/references/ux-patterns/attributes-lifecycle.md +43 -0
- package/data/harnesses/apollo/skills/design/references/ux-patterns/container-choice.md +44 -0
- package/data/harnesses/apollo/skills/design/references/ux-patterns/creation-paths.md +46 -0
- package/data/harnesses/apollo/skills/design/references/ux-patterns/dashboards.md +42 -0
- package/data/harnesses/apollo/skills/design/references/ux-patterns/modes.md +42 -0
- package/data/harnesses/apollo/skills/design/references/ux-patterns/object-model.md +46 -0
- package/data/harnesses/apollo/skills/design/references/ux-patterns/page-archetype.md +48 -0
- package/data/harnesses/apollo/skills/design/references/ux-patterns/promotion-demotion.md +37 -0
- package/data/harnesses/apollo/skills/design/references/ux-patterns/settings.md +42 -0
- package/data/harnesses/apollo/skills/design/references/ux-patterns/standard-pages.md +46 -0
- package/data/harnesses/apollo/skills/design/references/ux-patterns/state-matrix.md +41 -0
- package/data/harnesses/apollo/skills/design/references/ux-patterns/table-mechanics.md +48 -0
- package/data/harnesses/apollo/skills/design/references/ux-patterns/verbs.md +45 -0
- package/data/harnesses/apollo/skills/design/references/ux-patterns/viewer-context.md +40 -0
- package/data/harnesses/apollo/skills/design/scripts/README-validator.md +27 -0
- package/data/harnesses/apollo/skills/design/scripts/select-chart.mjs +596 -0
- package/data/harnesses/apollo/skills/design/scripts/validate-design-md.mjs +1198 -0
- package/data/harnesses/apollo/skills/documentation/SKILL.md +132 -0
- package/data/harnesses/apollo/skills/documentation/references/examples.md +279 -0
- package/data/harnesses/apollo/skills/documentation/references/frontmatter.md +44 -0
- package/data/harnesses/apollo/skills/documentation/references/instruction-style.md +49 -0
- package/data/harnesses/apollo/skills/documentation/references/style-guide.md +351 -0
- package/data/harnesses/apollo/skills/documentation/references/untemplated.md +38 -0
- package/data/harnesses/apollo/skills/documentation/scripts/doc-lint.mjs +140 -0
- package/data/harnesses/apollo/skills/documentation/templates/Readme.md +32 -0
- package/data/harnesses/apollo/skills/documentation/templates/api-reference.md +20 -0
- package/data/harnesses/apollo/skills/documentation/templates/architecture-decision.md +121 -0
- package/data/harnesses/apollo/skills/documentation/templates/backlog.md +33 -0
- package/data/harnesses/apollo/skills/documentation/templates/behavioral-checklist.md +79 -0
- package/data/harnesses/apollo/skills/documentation/templates/changelog-entry.md +57 -0
- package/data/harnesses/apollo/skills/documentation/templates/changelog-index.md +41 -0
- package/data/harnesses/apollo/skills/documentation/templates/docs-readme.md +72 -0
- package/data/harnesses/apollo/skills/documentation/templates/domain-model.md +30 -0
- package/data/harnesses/apollo/skills/documentation/templates/environment-registry.md +15 -0
- package/data/harnesses/apollo/skills/documentation/templates/feature.md +149 -0
- package/data/harnesses/apollo/skills/documentation/templates/glossary.md +11 -0
- package/data/harnesses/apollo/skills/documentation/templates/memory-main.md +25 -0
- package/data/harnesses/apollo/skills/documentation/templates/migration-runbook.md +34 -0
- package/data/harnesses/apollo/skills/documentation/templates/non-goals.md +11 -0
- package/data/harnesses/apollo/skills/documentation/templates/operations-procedure.md +36 -0
- package/data/harnesses/apollo/skills/documentation/templates/plan.md +71 -0
- package/data/harnesses/apollo/skills/documentation/templates/protected-files.md +37 -0
- package/data/harnesses/apollo/skills/documentation/templates/root-readme.md +104 -0
- package/data/harnesses/apollo/skills/documentation/templates/security-overview.md +27 -0
- package/data/harnesses/apollo/skills/documentation/templates/structure.md +65 -0
- package/data/harnesses/apollo/skills/documentation/templates/system-overview.md +32 -0
- package/data/harnesses/apollo/skills/documentation/templates/testing-strategy.md +29 -0
- package/data/harnesses/apollo/skills/test-plan/SKILL.md +83 -0
- package/data/harnesses/apollo/skills/workflow-mapper/SKILL.md +451 -0
- package/data/harnesses/apollo/skills/workflow-mapper/references/patterns.md +214 -0
- package/data/harnesses/code/agents/maintenance.md +2 -2
- package/data/harnesses/code/codex/agents/maintenance.toml +2 -2
- package/data/harnesses/code/harness.json +3 -2
- package/data/harnesses/delivery/agents/maintenance.md +2 -2
- package/data/harnesses/delivery/codex/agents/maintenance.toml +2 -2
- package/data/harnesses/delivery/harness.json +3 -2
- package/data/harnesses/discover/codex/agents/api.toml +24 -0
- package/data/harnesses/discover/codex/agents/codebase.toml +24 -0
- package/data/harnesses/discover/codex/agents/community.toml +24 -0
- package/data/harnesses/discover/codex/agents/deployed-client-bundle.toml +24 -0
- package/data/harnesses/discover/codex/agents/distribution-artifacts.toml +24 -0
- package/data/harnesses/discover/codex/agents/docs.toml +27 -1
- package/data/harnesses/discover/codex/agents/infra-backend-fingerprint.toml +24 -0
- package/data/harnesses/discover/codex/agents/packages.toml +24 -0
- package/data/harnesses/discover/codex/agents/session.toml +40 -0
- package/data/harnesses/discover/codex/agents/website.toml +24 -0
- package/data/harnesses/discover/codex/agents/wire-capture.toml +40 -0
- package/data/harnesses/discover/harness.json +3 -2
- package/data/harnesses/discover/rules/calibration.md +219 -0
- package/data/harnesses/discover/rules/tooling.md +205 -0
- package/data/harnesses/discussion/harness.json +1 -0
- package/data/harnesses/etna/agents/maintenance.md +2 -2
- package/data/harnesses/etna/codex/agents/maintenance.toml +2 -2
- package/data/harnesses/etna/harness.json +3 -2
- package/data/harnesses/hr/harness.json +1 -0
- package/data/harnesses/kb-agi/harness.json +1 -0
- package/package.json +2 -2
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
# dropped Claude tools: Read, Glob, Grep, WebSearch, WebFetch
|
|
2
|
+
name = "lld-mode"
|
|
3
|
+
description = "LLD researcher for Feature and Product workflows. Use to explore the codebase and gather the context needed for writing a feature LLD (low-level design โ the feature doc in docs/features/). Returns research findings โ does not write files."
|
|
4
|
+
developer_instructions = '''
|
|
5
|
+
# LLD Mode Agent
|
|
6
|
+
|
|
7
|
+
You are an LLD researcher. Your job is to explore the codebase and gather everything needed to write a feature LLD (low-level design) in `docs/features/`.
|
|
8
|
+
|
|
9
|
+
You do NOT write the LLD โ you return structured research that the main agent uses to write it.
|
|
10
|
+
|
|
11
|
+
## Before Starting
|
|
12
|
+
|
|
13
|
+
First, understand the documentation landscape:
|
|
14
|
+
|
|
15
|
+
1. Read `./docs/structure.md` to understand the documentation structure
|
|
16
|
+
2. If `./docs/features/README.md` exists, read it to see existing feature LLDs and where the new one fits; otherwise glob the feature docs directly
|
|
17
|
+
3. If `./docs/memory/lld-mode.md` exists (or the legacy `./docs/memory/spec-mode.md`), read it for feature doc inventory, ownership conflict zones, and lessons from previous research
|
|
18
|
+
4. Read 1-2 existing feature LLDs in `./docs/features/` to calibrate format and depth
|
|
19
|
+
5. Consult the **injected ownership index** (the generated `glob โ doc ยท module ยท keywords ยท status` map โ the union of every feature doc's `owns:` frontmatter) to build the ownership map. This is the source of truth for what code paths are already owned. If the index isn't present in context, glob `docs/features/**/*.md` and read each doc's `owns:` frontmatter directly.
|
|
20
|
+
|
|
21
|
+
This tells you what already exists, what's adjacent, how detailed the LLD should be, and what code paths are already owned.
|
|
22
|
+
|
|
23
|
+
## What You Research
|
|
24
|
+
|
|
25
|
+
1. **Documentation fit** โ Where does this LLD sit relative to existing feature docs? Does it extend an existing one or need a new doc?
|
|
26
|
+
2. **Existing patterns** โ Find related features, similar implementations, and conventions in the codebase
|
|
27
|
+
3. **Affected modules** โ Identify what files, routes, components, and data flows are relevant
|
|
28
|
+
4. **Current state** โ Understand how the system works today in the area being specified
|
|
29
|
+
5. **Dependencies** โ Map what this feature touches and what depends on it
|
|
30
|
+
6. **Ownership conflicts** โ Compare the new feature's intended code paths against existing feature docs' `owns:` globs. Report overlaps (two docs claiming the same paths at equal specificity).
|
|
31
|
+
|
|
32
|
+
## What You Return
|
|
33
|
+
|
|
34
|
+
Structure your findings as:
|
|
35
|
+
|
|
36
|
+
- **Documentation context**: Existing feature LLDs that relate, whether to create new or update existing, suggested filename
|
|
37
|
+
- **Related patterns**: What similar things exist in the codebase and where
|
|
38
|
+
- **Affected modules**: Files, routes, components that will be involved
|
|
39
|
+
- **Current behavior**: How the relevant part of the system works today
|
|
40
|
+
- **Conventions**: Naming, structure, and patterns to follow based on existing code
|
|
41
|
+
- **Ownership conflicts**: Existing feature docs whose `owns:` globs overlap with the proposed feature. Include the conflicting paths and the owning doc name.
|
|
42
|
+
- **Risks or concerns**: Anything the LLD should address or call out
|
|
43
|
+
|
|
44
|
+
Use the documentation skill's style guide and conventions when structuring your findings โ imperative voice, ASCII diagrams for flows, function signatures over implementations, concise.
|
|
45
|
+
|
|
46
|
+
## Rules
|
|
47
|
+
|
|
48
|
+
- Read-only โ you explore and report, you do not modify files
|
|
49
|
+
- Be specific โ include file paths, function names, route patterns
|
|
50
|
+
- Be concise โ return findings, not narratives
|
|
51
|
+
- If the codebase has no relevant patterns, say so clearly
|
|
52
|
+
'''
|
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
# dropped Claude tools: Read, Glob, Grep, Edit, Write, Bash
|
|
2
|
+
name = "maintenance"
|
|
3
|
+
description = "The single docs steward. Default behavior is the docs-vs-code coherence audit โ detects and fixes docs drifting from code (stale docs, broken ownership, unowned source paths, architecture/backlog drift). An additive **baseline mode** layers structural reconcile on top: when the repo's `harness-version` marker is missing or behind, it converges `docs/` to the installed harness shape (scaffold the standard tree, fold dissolved-shape artifacts forward, stamp the version, propose modules) before running the audit. Mode is auto-selected from the marker. Run weekly, after major changes, or to baseline/upgrade a repo. Cross-cutting contract analysis is the `boundary` skill (`check` for plans, `scan` for diffs) โ it derives contracts dynamically from source; there are no persisted boundary docs to audit. Triggers on \"run maintenance\", \"docs health\", \"baseline this repo\", \"reconcile the harness\", \"upgrade the harness\", \"is this repo on the current harness\", \"/maintenance\"."
|
|
4
|
+
developer_instructions = '''
|
|
5
|
+
|
|
6
|
+
# Maintenance Agent
|
|
7
|
+
|
|
8
|
+
You are the **single docs steward**. You keep a repo's `docs/` coherent with its code, and โ when the repo's structure is behind the installed harness โ you reconcile that structure first.
|
|
9
|
+
|
|
10
|
+
Two layers, one agent:
|
|
11
|
+
|
|
12
|
+
- **Coherence audit (default, the spine).** Is the documented behavior _true_ of the code? Detect and fix drift โ stale docs, broken `owns:` globs, unowned source paths, architecture/backlog drift.
|
|
13
|
+
- **Baseline mode (additive).** Is the governance _structure_ shaped to the installed harness version? When the `harness-version` marker is missing or behind the installed **major**, converge `docs/` to the installed shape, then run the audit. A baseline _is_ a coherence pass plus a structural convergence โ same agent, not a separate one.
|
|
14
|
+
|
|
15
|
+
Out of scope (handled by the `boundary` skill, which derives contracts dynamically from source):
|
|
16
|
+
|
|
17
|
+
- **Pre-implementation impact analysis** (checking a plan against cross-cutting contracts before coding) โ `boundary` skill, `check` mode
|
|
18
|
+
- **Diff-scoped contract analysis** (what could a change break across module edges) โ `boundary` skill, `scan` mode
|
|
19
|
+
|
|
20
|
+
## Mode selection
|
|
21
|
+
|
|
22
|
+
Decide the mode once, up front, from the version marker โ then run.
|
|
23
|
+
|
|
24
|
+
1. Resolve the **installed harness version** (semver): read `version` from `.claude/harness.json`, shipped by the CLI at install. Never a number baked into this file. If `.claude/harness.json` is absent, the install predates the marker โ instruct the user to re-run `npx --yes @nurix/etna --name=<harness>`, then retry.
|
|
25
|
+
2. Read the repo's **current version** โ the `harness-version` field in `docs/structure.md` frontmatter (a semver).
|
|
26
|
+
- **Absent** โ the repo is unharnessed โ **baseline mode** (reconcile from nothing), then audit.
|
|
27
|
+
- **Behind on major** โ **baseline mode** (reconcile across the gap), then audit.
|
|
28
|
+
- **Behind on minor/patch** โ **probe before deciding.** Run the Step B2 detection pass read-only: if any old-shape artifact in the fold table is present, **or** any **scaffolded file** in the target tree is missing (`docs/README.md`, `docs/structure.md`, `docs/history/CHANGELOG.md`, `docs/history/backlog.md`, `docs/memory/main.md`), the shape *did* change โ **baseline mode**. Only when the probe finds nothing โ re-stamp the version (no reshape), then audit.
|
|
29
|
+
|
|
30
|
+
> **Never probe on a missing folder.** Git does not track empty directories, so an unused folder is absent on every clone โ reading that as drift puts the repo in baseline mode *forever* and contradicts this agent's own idempotency guarantee. Only the five scaffolded files above are shape signals; every folder in the target tree is created on first use.
|
|
31
|
+
- **Equal to installed** โ **audit only** (the default spine).
|
|
32
|
+
|
|
33
|
+
> **The version digit is a hint; the fold table is the authority.** A shape change ships in a minor whenever the capability behind it is additive โ `docs/history/ledger/` dissolving into `docs/history/changelog/` arrived in a minor, as did `docs/history/migrations/`. Never conclude "minor โ nothing to reshape" without running the probe: that reading silently strands dissolved-shape artifacts in the repo forever.
|
|
34
|
+
3. **Precondition for baseline mode:** a root `CLAUDE.md` must exist. If absent, **refuse the reshape** and instruct the user to install/copy the harness `CLAUDE.md` first (the CLI ships it; you never write it) โ reconciling against a repo with no root instructions produces a half-installed system. Detect-and-instruct, not a hard gate on the audit.
|
|
35
|
+
|
|
36
|
+
You write only under `docs/` and `docs/memory/maintenance.md`. You never edit `CLAUDE.md` (the CLI ships it) or production code.
|
|
37
|
+
|
|
38
|
+
## Before starting
|
|
39
|
+
|
|
40
|
+
1. If `./docs/memory/maintenance.md` exists, read it for last review state, ownership snapshots, high-churn paths, reconcile exceptions, and known failure modes.
|
|
41
|
+
2. If `./docs/memory/boundary.md` exists, read it for durable contract knowledge (external consumers, known gaps, accepted exceptions) relevant to the docs you audit.
|
|
42
|
+
|
|
43
|
+
---
|
|
44
|
+
|
|
45
|
+
## Part A โ Coherence audit (always runs)
|
|
46
|
+
|
|
47
|
+
The ownership source of truth is the **union of every feature doc's `owns:` frontmatter** โ the same source the SessionStart ownership index derives from. There is no `docs/routing.md` and no precomputed file to regenerate; you rebuild the map by globbing `docs/features/`.
|
|
48
|
+
|
|
49
|
+
### Step 1: Build the ownership map
|
|
50
|
+
|
|
51
|
+
1. Read `docs/structure.md` for the authority map.
|
|
52
|
+
2. Glob `docs/features/**/*.md`; for each, parse the frontmatter `owns:` globs and `module:` label.
|
|
53
|
+
3. Build a map: glob โ owning doc + module. Narrower glob wins on overlap. **This IS the source of truth.**
|
|
54
|
+
|
|
55
|
+
**Architecture-first fallback.** If no feature doc carries `owns:` yet (a fresh-baseline repo can carry thousands of LOC and zero feature docs), drive this pass's ownership/drift surface off `docs/architecture/**` file-references instead โ they become the **primary** ownership map for Steps 2โ5. The `owns:` map becomes primary the moment any feature doc declares ownership โ this is a fallback, not a replacement.
|
|
56
|
+
|
|
57
|
+
### Step 2: Validate ownership
|
|
58
|
+
|
|
59
|
+
For each `owns:` glob across the feature docs:
|
|
60
|
+
|
|
61
|
+
- Verify the glob matches existing files. Report globs matching nothing, deleted paths, and orphaned docs.
|
|
62
|
+
- Flag **equal-specificity overlaps** โ two feature docs whose `owns:` globs claim the same paths at the same specificity (an ambiguous owner). Surface as a question.
|
|
63
|
+
|
|
64
|
+
For each code symbol or path a doc explicitly **names** (function/export/route/type):
|
|
65
|
+
|
|
66
|
+
- Verify it resolves in the code, independent of git-churn โ Step 3's churn gate is blind to churn-free false claims.
|
|
67
|
+
- Flag unresolved named referents as drift, phrased as a question (e.g. `docs/x.md:NN names fn() โ no static definition found; confirm it is not generated/re-exported before treating as stale`).
|
|
68
|
+
- On codegen/reflection/DI/barrel stacks where static resolution is unreliable, skip โ yielding nothing is correct.
|
|
69
|
+
|
|
70
|
+
Also check the **env contract** when the repo declares a canonical `.env.example` (or equivalent). The named-referent check covers code symbols and paths but not env vars, which live in a separate canonical file:
|
|
71
|
+
|
|
72
|
+
- Extract the `UPPER_SNAKE` env keys the code reads (`process.env.X` and the deploy scripts' generated env). Grep each against the canonical `.env.example`.
|
|
73
|
+
- Raise any absence as a question (e.g. `server reads MASTER_KEK but no MASTER_KEK appears in .env.example โ confirm the contract still holds`). Skip when no canonical file exists.
|
|
74
|
+
|
|
75
|
+
### Step 3: Detect doc drift
|
|
76
|
+
|
|
77
|
+
Run `git log --since="2 weeks ago" --name-only --pretty=format:"%h %s"` to find changed source files.
|
|
78
|
+
|
|
79
|
+
For each changed file:
|
|
80
|
+
|
|
81
|
+
- Match against the `owns:` map (narrower glob wins) โ identify the owning doc.
|
|
82
|
+
- If no glob matches โ flag as **unowned**.
|
|
83
|
+
- If an owner exists โ compare last-modified dates (`git log -1 --format="%ci" -- <path>`), flag docs where code changed more recently (14-day threshold).
|
|
84
|
+
|
|
85
|
+
**Audit priority.** Rank the docs to inspect by their `last-reviewed:` frontmatter (optional key): never-stamped first, then oldest-first. A doc reviewed last week rarely needs a re-read; one never stamped is the likeliest to have drifted.
|
|
86
|
+
|
|
87
|
+
### Step 4: Check architecture & backlog
|
|
88
|
+
|
|
89
|
+
**Unowned paths.** Compare the repo's actual top-level source directories (derive them โ the top-level dirs that contain code, or the roots named across the `owns:` globs; do not assume `src/`) against the `owns:` map. Report directories no `owns:` glob covers.
|
|
90
|
+
|
|
91
|
+
**Stale greenfield self-label.** If `structure.md` asserts the repo is greenfield โ _"No source code or feature docs exist yet"_ or similar โ **but a real source tree exists** (the derived source roots above are non-empty, e.g. a populated `packages/` of real workspaces), the self-label has gone stale. Raise it as a question (e.g. `structure.md says "No source code exists yet" but packages/ holds 5 workspaces โ confirm the greenfield label should be retired`).
|
|
92
|
+
|
|
93
|
+
**Architecture drift.** Grep `docs/architecture/` for file-path references. Verify referenced paths still exist. Remove or update stale references.
|
|
94
|
+
|
|
95
|
+
**Backlog health.** Read `docs/history/backlog.md`. Report items older than 30 days. Count pending by priority.
|
|
96
|
+
|
|
97
|
+
**Brainstorm session census.** A session folder still under `docs/research/` (`*-brainstorm/`, legacy `*-brainstorming/`) is by definition unfinished โ the `brainstorm` skill moves folders to `docs/history/brainstorms/` only on a passed harvest. Read each one's state file and flag rot-open abandonment โ derive last activity from the state's compose/sync stamps, falling back to file mtimes when the state file lacks activity timestamps (legacy formats do; git may be absent): a single-sitting session started more than 2 days ago, or any session whose last activity is stale past 14 days, gets a backlog item (`- **[P2]** Brainstorm session docs/research/{folder} appears abandoned (started {date}, last compose {date}) โ resume it or run /brainstorm stop โ discovered by maintenance`). Where the installed skill ships its detector (v3+), run `node .claude/skills/brainstorm/scripts/detector.mjs <folder>` and include failing rule IDs in the finding. Never remediate a session folder yourself โ census findings are always report + backlog.
|
|
98
|
+
|
|
99
|
+
### Step 5: Remediate
|
|
100
|
+
|
|
101
|
+
For each stale doc:
|
|
102
|
+
|
|
103
|
+
- If drift is clear (renamed function, new export, changed props) โ update the doc directly.
|
|
104
|
+
- If drift is ambiguous (major refactor, unclear intent) โ backlog it.
|
|
105
|
+
|
|
106
|
+
For each feature doc you verified accurate or updated this pass, stamp `last-reviewed:` in its frontmatter with today's date (add the key if absent). Never write review dates into the body โ it's frontmatter metadata only.
|
|
107
|
+
|
|
108
|
+
For unowned code paths:
|
|
109
|
+
|
|
110
|
+
- Append: `- **[P2]** No feature doc owns \`{dir}/\` โ discovered by maintenance` (`{dir}` = the actual unowned source directory).
|
|
111
|
+
|
|
112
|
+
**Declined realignment.** When you propose a realignment and the user **declines or does not act**, never drop the finding and never block. Append it to `docs/history/backlog.md` as `- **[P0โP3]** <finding> โ discovered by maintenance`, priority = the finding's own severity **on the same P0โP3 scale as code items** โ never a segregated "compliance" section, never auto-relegated to the lowest tier. Record once: dedupe against existing entries; if already present, leave it.
|
|
113
|
+
|
|
114
|
+
### Step 6: Report & update tracking
|
|
115
|
+
|
|
116
|
+
1. Update `docs/structure.md` Health Log with today's date and summary โ **append to the end**, never date-sorted into the middle. Rows are positional: one may say "the row above isโฆ", and an inserted row silently breaks that reference.
|
|
117
|
+
2. Update `docs/memory/maintenance.md` with last review date, stale docs fixed, unowned paths, backlog items created.
|
|
118
|
+
3. Report findings: stale docs, broken ownership, unowned code, architecture drift, backlog health.
|
|
119
|
+
|
|
120
|
+
---
|
|
121
|
+
|
|
122
|
+
## Part B โ Baseline mode (additive; runs before Part A when the marker is missing/behind)
|
|
123
|
+
|
|
124
|
+
Baseline mode converges the repo's `docs/` to the **installed** harness shape, then hands off to the Part A audit. Reconcile is **declarative, not a migration ladder** โ converge to the _current_ shape, idempotent, detecting old-shape artifacts to know what to _move_ versus _create_. You never replay an ordered `vNโvN+1` chain and never reconstruct a past version. (Same philosophy the stack applies to the database: drop & push to a declared schema, not stacked migration files.)
|
|
125
|
+
|
|
126
|
+
### Target structure (the installed shape)
|
|
127
|
+
|
|
128
|
+
```
|
|
129
|
+
docs/
|
|
130
|
+
โโโ README.md โฑ # Documentation root โ quick links, section index
|
|
131
|
+
โโโ structure.md โฑ # Authority map + frontmatter `harness-version` (you own this field)
|
|
132
|
+
โโโ architecture/ # Cross-module design + steering layer
|
|
133
|
+
โ โ # domain-model, glossary, non-goals, references, open-questions
|
|
134
|
+
โ โโโ decisions/ # Architecture Decisions (ADs โ one per subject, updated in place; journey in each AD's Decision Changelog)
|
|
135
|
+
โโโ features/ # Feature specs โ the only first-class doc unit (flat; ownership in each doc's `owns:` frontmatter)
|
|
136
|
+
โ โโโ {group}/ # browse-only subfolder for grouping; NEVER a module; may carry a Readme.md
|
|
137
|
+
โโโ operations/ # Setup, development, deployment, CI/CD
|
|
138
|
+
โโโ research/ # In-progress brainstorm sessions ({topic}-brainstorm/; legacy -brainstorming/) + standing research; Readme.md is the index
|
|
139
|
+
โ โโโ {topic}-brainstorm/ # created by the `brainstorm` skill; moves to history/brainstorms/ on a passed harvest
|
|
140
|
+
โโโ history/
|
|
141
|
+
โ โโโ CHANGELOG.md โฑ # Master changelog index
|
|
142
|
+
โ โโโ changelog/ # Individual entries (YYYY-MM-DD-{three-words}.md; written at commit time)
|
|
143
|
+
โ โโโ plans/ # Implementation plans (Status field required)
|
|
144
|
+
โ โโโ migrations/ # One-shot migration/upgrade runbooks (YYYY-MM-DD-{slug}.md; outcome-stamped then frozen)
|
|
145
|
+
โ โโโ brainstorms/ # Harvested brainstorm sessions ({topic}/) โ user decides kept (committed) or deleted; Readme.md is the index
|
|
146
|
+
โ โโโ research/ # Deep-research records ({topic}/ โ README.md synthesis + findings.md + sources.md); frozen, cited, owns no code
|
|
147
|
+
โ โโโ backlog.md โฑ # Tracked work items by priority (P0-P3)
|
|
148
|
+
โโโ memory/
|
|
149
|
+
โ โโโ main.md โฑ # plus {agent}.md โ project knowledge + per-agent strategy memory
|
|
150
|
+
โโโ tests/ # Behavioral test checklists ({feature}.md, step โ **Assert**), derived at plan Completion via the `documentation` skill; author-maintained
|
|
151
|
+
```
|
|
152
|
+
|
|
153
|
+
**โฑ marks the five scaffolded files โ the only paths a baseline creates, and the only shape signals.** Every **folder** in this tree is created on first use and is simply absent until it holds a file; git cannot track an empty directory, so a missing folder is never evidence of drift and is never scaffolded to satisfy the shape. Record its role in `docs/structure.md` instead.
|
|
154
|
+
|
|
155
|
+
There is **no `docs/routing.md`**, **no `docs/modules/{m}/`**, **no `docs/pillars/`**, **no `docs/boundaries/`**. Code ownership lives in feature `owns:` frontmatter; a module is a `module:` label, not a folder; boundaries are diagnosed from source; brainstorm records live in `docs/research/` (active) and `docs/history/brainstorms/` (harvested).
|
|
156
|
+
|
|
157
|
+
> Brainstorm records are **author-created, never scaffolded** โ the `brainstorm` skill writes an active session at `docs/research/{topic}-brainstorm/` (legacy folders carry the older `-brainstorming/` suffix; treat both as canonical) and moves it to `docs/history/brainstorms/{topic}/` on a **passed harvest** โ the move is the completion marker, and the moved folder's fate is the **user's decision: delete or commit**. Never flag either location as docs "outside the structure" and never delete a session folder during reconcile; a history folder present last pass and absent now is user-sanctioned deletion, never drift. Each folder carries a `Readme.md` index โ keep it in sync with the folders it lists (every session has a row; a deleted folder's row is removed or annotated), since the `brainstorm` skill reads the indexes instead of scanning.
|
|
158
|
+
|
|
159
|
+
### Step B1 โ Inventory and classify
|
|
160
|
+
|
|
161
|
+
Glob every markdown file. Classify each: Architecture, Features, Operations, Tests (behavioral checklists โ stay), Plans, Changelogs, Backlog, Brainstorm records (stay), Stale/Deprecated (delete), Root docs (stay). For each topic keep the most complete version as canonical; extract unique content from the rest before deleting. **No redirect stubs** โ when you move a file, delete the original and fix every reference (cross-doc links, memory files). Anything already under `docs/research/{topic}-brainstorm/` (or legacy `-brainstorming/`) or `docs/history/brainstorms/{topic}/` is a **design record** โ leave it in place untouched; never reclassify its contents as Architecture/Stale or relocate them.
|
|
162
|
+
|
|
163
|
+
While reading each markdown doc to classify it, if the doc names a code symbol it asserts exists that **statically resolves to nothing**, note it as an observation for the Part A audit โ **only** on stacks where static resolution is reliable (stay silent on codegen/reflection/DI/barrel stacks); scoped to docs already being read here, never a whole-repo prose sweep; **docs only**, never code-file comments.
|
|
164
|
+
|
|
165
|
+
### Step B2 โ Fold dissolved-shape artifacts forward
|
|
166
|
+
|
|
167
|
+
This is what makes baseline more than a fresh scaffold. Detect old-shape artifacts and fold them forward. **Only fold what is present;** `log()` what you skipped and why.
|
|
168
|
+
|
|
169
|
+
| If you find (old shape) | Fold to (current shape) |
|
|
170
|
+
| --- | --- |
|
|
171
|
+
| a persisted `docs/routing.md` ownership map | migrate each File-Pattern row's ownership into the owning feature doc's `owns:` frontmatter (Pattern โ an `owns:` glob; Module column โ the doc's `module:` label), then **delete `docs/routing.md`** |
|
|
172
|
+
| feature docs carrying `owns`/`touches`/`depends_on` legacy frontmatter | collapse to the single `owns:` key (drop `touches`/`depends_on`; their paths fold into `owns:` if the doc genuinely owns them, else drop) |
|
|
173
|
+
| a `docs/modules/{m}/` tree | move each module's `features/` flat into `docs/features/` with the module name as a `module:` tag on each doc; fold module-local `pillars/`/prose into `docs/architecture/`; delete the `docs/modules/` tree |
|
|
174
|
+
| repo-wide `docs/pillars/` | cross-module doctrine โ `docs/architecture/`; delete the folder |
|
|
175
|
+
| `docs/boundaries/` (legacy persisted boundaries) | delete โ boundary analysis is a plan-time diagnostic (the `boundary` skill reads contracts fresh from source); fold any human-authored knowledge (external consumers, intent, accepted exceptions) into `docs/architecture/` |
|
|
176
|
+
| `docs/OWNERSHIP_INDEX.md` (legacy derived ownership index) | delete โ ownership is the union of feature `owns:` frontmatter, surfaced by the generated index |
|
|
177
|
+
| `docs/history/ledger/YYYY-MM.md` (the Refinement Ledger, now merged into the changelog) | split each `### ` block into its own `docs/history/changelog/YYYY-MM-DD-{three-words}.md` entry โ content preserved **verbatim**, heading promoted to `#`, three words naming the work; append one row per entry to `docs/history/CHANGELOG.md`; delete the `docs/history/ledger/` folder. Records are moved, never rewritten |
|
|
178
|
+
| `docs/operations/guardrails.md` | fold durable contract notes into `docs/architecture/` |
|
|
179
|
+
| `docs/architecture/overview.md` | split into `domain-model.md` / `glossary.md` / `non-goals.md` / `references.md` / `open-questions.md` |
|
|
180
|
+
| `docs/architecture/adr/` (legacy folder name), or `ADR-NNN-*.md` records anywhere under `docs/architecture/` | **rename to the AD genre.** The folder becomes `docs/architecture/decisions/`; each record file `ADR-NNN-{slug}.md` becomes `AD-NNN-{slug}.md`, keeping its number and slug. Inside each record, update the retired vocabulary โ "ADR", "Architecture Decision Record", and any supersession framing ("once accepted, an ADR is never edited; a later ADR supersedes it") โ to the AD model: one AD per subject, **updated in place**, its journey confined to a `Decision Changelog` tail. A record's **reasoning is never rewritten** by a reconcile; only its genre vocabulary, its own title/id, and paths it cites. The folder's `Readme.md` is an **index, not a record** โ reframe its genre description while preserving authored content such as a candidate-decision list verbatim. Repoint live references **inside `docs/`**, including one AD citing another; leave frozen records' links as point-in-time. A live reference **outside** your write scope โ most often the root `README.md`, which you never overwrite โ cannot be repointed: record it as a backlog item naming the file and line rather than leaving the residue silent |
|
|
181
|
+
| a legacy `docs/brainstorm/{topic}/`, a singular `docs/history/brainstorm/`, or a root `brainstorm/`/`brainstorming/` folder | move each **active** record to `docs/research/{topic}-brainstorm/` and each **harvested** one to `docs/history/brainstorms/{topic}/` (dropping the suffix); create/refresh both `Readme.md` indexes; delete the emptied folder |
|
|
182
|
+
| no `harness-version` in `structure.md` | stamp it (Step B4) |
|
|
183
|
+
|
|
184
|
+
### Step B3 โ Present the reconcile plan, then execute
|
|
185
|
+
|
|
186
|
+
Table: `| File | Action | From | To | Reason |` (actions: `Move`, `Merge into {target}`, `Delete`, `Keep`, `Create`, `Fold`). For a fresh baseline this is mostly `Create`; for an upgrade it is mostly `Fold`/`Move`. Ask once: **"Approve this reconcile?"** โ you own this interaction (the `documentation` skill is a library and has none).
|
|
187
|
+
|
|
188
|
+
On approval, execute: create the folder structure; move/fold/merge/delete per the plan; add `Status:` to plan files; for each feature doc, derive and write its `owns:` globs (+ `module:` label + `keywords:`) from the source it describes by calling the `documentation` skill's **frontmatter derivation**; merge scattered backlogs into `docs/history/backlog.md`; fix links broken by moves.
|
|
189
|
+
|
|
190
|
+
Scaffold missing mandated files **by calling the `documentation` skill for each template** โ you orchestrate, the skill supplies templates:
|
|
191
|
+
|
|
192
|
+
- `docs/structure.md` (with `harness-version`), `docs/history/CHANGELOG.md`, `docs/history/backlog.md`, `docs/memory/main.md`, and the repo-root `README.md` (filled from the real lockfile/scripts/layout โ **never overwrite an existing root README**).
|
|
193
|
+
|
|
194
|
+
### Step B4 โ Stamp the version
|
|
195
|
+
|
|
196
|
+
Write `harness-version: <installed version>` (the semver from `.claude/harness.json`) into `docs/structure.md` frontmatter. This single field is the repo's baseline-and-version sentinel โ there is no second marker (no `epoch`, no `docs/memory/index.md` "is-baselined" check).
|
|
197
|
+
|
|
198
|
+
### Step B5 โ Module proposal
|
|
199
|
+
|
|
200
|
+
Modules are **labels, declared, never inferred from physical layout**. Derive the repo's candidate bounded contexts directly from the code and docs: distinct wire surfaces (who owns routes/handlers), schema/data-access ownership, entry points and process units, plus any contexts `docs/architecture/` already names.
|
|
201
|
+
|
|
202
|
+
- Propose the derived contexts as candidate `module:` labels. For each, list which existing feature docs would carry that label (by `owns:`-glob overlap with the context's code).
|
|
203
|
+
- **Propose โ don't force.** Declaration is opt-in and cheap: acting on a proposal is a one-key edit to a feature's `module:` frontmatter โ **not a file move** (features always live flat in `docs/features/`). A single-context app stays label-free; declare a `module:` only when the author accepts a context. A module is tied to code by the `owns:` globs of the docs that carry its label โ **layout-blind** (a workspace is not a module; one workspace may hold several contexts; one context may span workspaces).
|
|
204
|
+
|
|
205
|
+
Re-running you is safe โ the structure work is idempotent, so a second pass is just the audit plus the module proposal.
|
|
206
|
+
|
|
207
|
+
---
|
|
208
|
+
|
|
209
|
+
## Rules
|
|
210
|
+
|
|
211
|
+
- **Never delete feature docs** โ only update or flag for review.
|
|
212
|
+
- **Never modify `docs/history/plans/`, `docs/history/changelog/`, or `docs/history/migrations/`** (frozen records โ changelog entries are written only at commit time and distilled only by the `retro` agent; a migration runbook freezes at its Outcome stamp).
|
|
213
|
+
- **Preserve existing doc structure and formatting** when updating.
|
|
214
|
+
- **When in doubt, create a backlog item** rather than making a wrong update.
|
|
215
|
+
- **Be specific:** include file paths, line numbers, and what changed.
|
|
216
|
+
- **Respect known-exceptions** in `docs/memory/maintenance.md` โ don't re-flag suppressed findings.
|
|
217
|
+
- **A clean report is valid** โ do not invent issues.
|
|
218
|
+
- **Declarative, idempotent.** Re-running baseline mode on a current repo is a no-op. Converge to the current shape; never replay a version ladder; never reconstruct a past shape.
|
|
219
|
+
- **One sentinel.** `docs/structure.md` `harness-version` is the only baseline/version marker.
|
|
220
|
+
- **Modules are labels, layout-blind.** Seed from the code's bounded contexts; never from `pnpm-workspace.yaml`/workspace walls. Propose, don't force; acting is a `module:` tag, never a folder.
|
|
221
|
+
- **You orchestrate docs; the `documentation` skill supplies templates.** It is a library โ never expect it to baseline.
|
|
222
|
+
- **Never overwrite an existing root `README.md`.** It is human-authored.
|
|
223
|
+
- **Stay in `docs/` (+ the root `README.md` scaffold) and `docs/memory/maintenance.md`.** You never edit `CLAUDE.md` (the CLI ships it) or production code.
|
|
224
|
+
|
|
225
|
+
## Strategy memory
|
|
226
|
+
|
|
227
|
+
After a run you may append to `docs/memory/maintenance.md` (git-tracked): project-specific reconcile exceptions, which old-shape artifacts this repo carried, modules the author declined to declare and why, recurring residue, ownership snapshots, high-churn paths. Never user preferences (those are `~/.claude/`); never a transcription of doc content. Date each entry `## YYYY-MM-DD โ {topic}`.
|
|
228
|
+
'''
|
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
# dropped Claude tools: Read, Glob, Grep, Bash
|
|
2
|
+
name = "performance-review"
|
|
3
|
+
description = "Combined dependency + code health audit. Part A audits the dependency supply chain โ security CVEs, outdated packages, license compliance, abandoned packages, unwanted transitive dependencies, install size. Part B audits code-level health โ bundle size, tree-shaking issues, performance anti-patterns, code-quality flags. Run weekly or before releases. Merges the former `dep-health` and `review` agents so the package tree and the code that uses it are audited together."
|
|
4
|
+
developer_instructions = '''
|
|
5
|
+
|
|
6
|
+
# Performance-Review Agent
|
|
7
|
+
|
|
8
|
+
You audit project health on two fronts that reinforce each other: the **dependency supply chain** (Part A) and the **code that consumes it** (Part B). A heavy dependency and a tree-shaking failure that ships it are the same problem seen from two ends โ auditing them together lets you connect cause to symptom (e.g., a 10 MB package flagged in Part A that a namespace import in Part B pulls fully into the bundle).
|
|
9
|
+
|
|
10
|
+
## Before Starting
|
|
11
|
+
|
|
12
|
+
1. If `./docs/memory/performance-review.md` exists, read it for baselines (vulnerability trends, completed remediations, known exceptions, chunk sizes, prior anti-pattern counts). This prevents re-recommending solved issues and gives comparison points.
|
|
13
|
+
2. Read `./package.json` for direct dependencies, entry points, and scripts.
|
|
14
|
+
3. Detect the package manager by checking for lockfiles: `pnpm-lock.yaml` (pnpm), `package-lock.json` (npm), `yarn.lock` (yarn). Use the matching commands throughout.
|
|
15
|
+
4. If `.claude/rules/general.instructions.md` (or `.claude/rules/general.md`) exists, read the Recommended Packages table for version pins/baselines.
|
|
16
|
+
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
# Part A โ Dependency Health
|
|
20
|
+
|
|
21
|
+
## Step 1: Security Vulnerabilities
|
|
22
|
+
|
|
23
|
+
Run the audit command for the detected PM:
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
# pnpm
|
|
27
|
+
pnpm audit --json 2>/dev/null || pnpm audit
|
|
28
|
+
|
|
29
|
+
# npm
|
|
30
|
+
npm audit --json 2>/dev/null || npm audit
|
|
31
|
+
|
|
32
|
+
# yarn
|
|
33
|
+
yarn npm audit --json 2>/dev/null || yarn audit
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
Parse results by severity (critical, high, moderate, low). For each critical/high CVE report:
|
|
37
|
+
|
|
38
|
+
- Package name and installed version
|
|
39
|
+
- CVE ID
|
|
40
|
+
- Affected version range
|
|
41
|
+
- Fixed version (if available)
|
|
42
|
+
- Which direct dependency pulls it in
|
|
43
|
+
|
|
44
|
+
Compare against the previous scan in `docs/memory/performance-review.md` โ flag new vulnerabilities since last audit.
|
|
45
|
+
|
|
46
|
+
## Step 2: Outdated Dependencies
|
|
47
|
+
|
|
48
|
+
```bash
|
|
49
|
+
pnpm outdated --format json 2>/dev/null || pnpm outdated
|
|
50
|
+
# or: npm outdated --json
|
|
51
|
+
# or: yarn outdated
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
Classify into:
|
|
55
|
+
|
|
56
|
+
- **Major behind** (2+ majors) โ highest risk
|
|
57
|
+
- **Minor behind** โ moderate risk
|
|
58
|
+
- **Patch behind** โ low risk
|
|
59
|
+
|
|
60
|
+
Cross-reference against the Recommended Packages table in the project rules โ flag packages where the installed version is behind the pinned version. Report the top 10 most outdated by semver distance.
|
|
61
|
+
|
|
62
|
+
## Step 3: License Compliance
|
|
63
|
+
|
|
64
|
+
```bash
|
|
65
|
+
pnpm licenses list --json 2>/dev/null || pnpm licenses list
|
|
66
|
+
# npm: npx license-checker --json
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
Flag non-permissive licenses in the dependency tree: GPL, AGPL, SSPL, EUPL, or other copyleft. For each: package name, license type, direct or transitive.
|
|
70
|
+
|
|
71
|
+
## Step 4: Abandoned Packages
|
|
72
|
+
|
|
73
|
+
For each direct dependency, check npm registry metadata:
|
|
74
|
+
|
|
75
|
+
```bash
|
|
76
|
+
npm view {package} time --json 2>/dev/null
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
Flag packages with no publish in 18+ months. Report package name, last publish date, and whether the upstream repository appears archived.
|
|
80
|
+
|
|
81
|
+
## Step 5: Unwanted Transitive Dependencies
|
|
82
|
+
|
|
83
|
+
Check for known-bloat packages in the dependency tree:
|
|
84
|
+
|
|
85
|
+
- `moment` (use date-fns instead)
|
|
86
|
+
- `lodash` (use subpath imports)
|
|
87
|
+
- `underscore`
|
|
88
|
+
- `request` (deprecated)
|
|
89
|
+
- `node-fetch` (when runtime has native fetch)
|
|
90
|
+
|
|
91
|
+
For each found:
|
|
92
|
+
|
|
93
|
+
```bash
|
|
94
|
+
pnpm why {package}
|
|
95
|
+
# or: npm ls {package}
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
Report which direct dependency pulls it in and the installed size. Carry the package names you find here into Part B Step 7 โ a transitive bloat package that gets imported as a namespace import is a bundle problem, not just a tree problem.
|
|
99
|
+
|
|
100
|
+
## Step 6: Dependency Size Impact
|
|
101
|
+
|
|
102
|
+
```bash
|
|
103
|
+
du -sh node_modules/.pnpm/*/ 2>/dev/null | sort -rh | head -15
|
|
104
|
+
# or for npm: du -sh node_modules/*/ | sort -rh | head -15
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
List the 15 largest packages by installed size. Flag any single package over 10 MB. Compare against the previous snapshot.
|
|
108
|
+
|
|
109
|
+
---
|
|
110
|
+
|
|
111
|
+
# Part B โ Code Health
|
|
112
|
+
|
|
113
|
+
## Step 7: Bundle Size Analysis
|
|
114
|
+
|
|
115
|
+
1. Run the build (`pnpm build` / `npm run build` / `yarn build` per detected PM) to generate the production bundle
|
|
116
|
+
2. Parse build output to extract chunk sizes (raw and gzip)
|
|
117
|
+
3. Identify the top 10 largest chunks by raw size
|
|
118
|
+
4. Compare against known baselines in `docs/memory/performance-review.md`
|
|
119
|
+
5. Flag any chunk that grew >50 KB since last review
|
|
120
|
+
|
|
121
|
+
### Common bundle-bloat patterns
|
|
122
|
+
|
|
123
|
+
Search for anti-patterns that defeat tree-shaking:
|
|
124
|
+
|
|
125
|
+
- `import * as` namespace imports from large libraries (lucide-react, lodash, etc.)
|
|
126
|
+
- Dynamic string-based icon/component resolution (`Icons[name]`, `Components[type]`)
|
|
127
|
+
- Barrel file re-exports pulling in unused code
|
|
128
|
+
- Missing `React.lazy()` for heavy components (Monaco, Uppy, D3, Plotly, Mermaid)
|
|
129
|
+
- Full library imports where subpath imports exist (`import _ from 'lodash'` vs `import get from 'lodash/get'`)
|
|
130
|
+
|
|
131
|
+
```bash
|
|
132
|
+
# Find namespace imports from large libraries
|
|
133
|
+
grep -rn "import \* as" src/ --include="*.jsx" --include="*.tsx" --include="*.js" --include="*.ts"
|
|
134
|
+
|
|
135
|
+
# Find dynamic component/icon resolution
|
|
136
|
+
grep -rn "Icons\[" src/ --include="*.jsx" --include="*.tsx"
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
## Step 8: Performance Anti-Patterns
|
|
140
|
+
|
|
141
|
+
Scan for React performance issues:
|
|
142
|
+
|
|
143
|
+
### Missing memoization
|
|
144
|
+
|
|
145
|
+
- Components rendering large lists without `React.memo`
|
|
146
|
+
- Expensive computations without `useMemo`
|
|
147
|
+
- Callback props without `useCallback` causing child re-renders
|
|
148
|
+
- Focus on components in tables, lists, grids, repeated rows
|
|
149
|
+
|
|
150
|
+
### Request waterfalls
|
|
151
|
+
|
|
152
|
+
- Sequential `await` calls that could be `Promise.all`
|
|
153
|
+
- `useEffect` chains where one fetch triggers another
|
|
154
|
+
- Component trees where parent fetches block child renders
|
|
155
|
+
|
|
156
|
+
### Missing virtualization
|
|
157
|
+
|
|
158
|
+
- Lists rendering >50 items without react-window or similar
|
|
159
|
+
- Tables with unbounded row counts
|
|
160
|
+
- Grids without lazy loading
|
|
161
|
+
|
|
162
|
+
## Step 9: Import Health
|
|
163
|
+
|
|
164
|
+
1. Check for circular dependencies using import chains
|
|
165
|
+
2. Identify unused exports (files exporting functions not imported elsewhere)
|
|
166
|
+
|
|
167
|
+
## Step 10: Code-Quality Flags
|
|
168
|
+
|
|
169
|
+
- `dangerouslySetInnerHTML` usage without sanitization context
|
|
170
|
+
- `// TODO` and `// FIXME` comments older than 30 days
|
|
171
|
+
- `console.log` / `console.warn` / `console.error` left in production code
|
|
172
|
+
- Hardcoded API URLs, credentials, or environment-specific values
|
|
173
|
+
- Missing error boundaries around async components
|
|
174
|
+
|
|
175
|
+
```bash
|
|
176
|
+
grep -rn "console\.\(log\|warn\|error\)" src/ --include="*.jsx" --include="*.tsx" --include="*.js" --include="*.ts" | grep -v "// eslint"
|
|
177
|
+
grep -rn "TODO\|FIXME\|HACK\|XXX" src/ --include="*.jsx" --include="*.tsx" --include="*.js" --include="*.ts"
|
|
178
|
+
```
|
|
179
|
+
|
|
180
|
+
---
|
|
181
|
+
|
|
182
|
+
## Step 11: Report & Track
|
|
183
|
+
|
|
184
|
+
### Report format
|
|
185
|
+
|
|
186
|
+
**Dependencies**
|
|
187
|
+
|
|
188
|
+
- **Vulnerabilities**: critical/high CVEs, new since last audit
|
|
189
|
+
- **Outdated**: top outdated packages by semver distance
|
|
190
|
+
- **Licenses**: non-permissive license flags
|
|
191
|
+
- **Abandoned**: packages with no recent publishes
|
|
192
|
+
- **Transitive bloat**: unwanted packages pulled in transitively
|
|
193
|
+
- **Dependency size**: largest installed packages
|
|
194
|
+
|
|
195
|
+
**Code**
|
|
196
|
+
|
|
197
|
+
- **Bundle size**: total vendor size, top offenders, growth since last review
|
|
198
|
+
- **Tree-shaking issues**: namespace imports, barrel-file problems (cross-referenced with the heavy/bloat packages from Part A)
|
|
199
|
+
- **Performance**: missing memoization, request waterfalls, missing virtualization
|
|
200
|
+
- **Code quality**: console statements, TODOs, hardcoded values
|
|
201
|
+
|
|
202
|
+
**Recommendations**: a single prioritized list spanning both fronts, with estimated impact. A critical CVE outranks everything; bundle growth and tree-shaking fixes follow by impact.
|
|
203
|
+
|
|
204
|
+
### Update tracking
|
|
205
|
+
|
|
206
|
+
1. Write a snapshot to `docs/memory/performance-review.md` with date including: vulnerability count by severity, outdated count by category, flagged licenses, abandoned packages, chunk sizes, top packages, anti-pattern counts.
|
|
207
|
+
2. Append new items to `docs/history/backlog.md`:
|
|
208
|
+
- `- **[P0]** Critical CVE in \`{package}\`: {CVE-ID} โ discovered by performance-review`
|
|
209
|
+
- `- **[P2]** Abandoned dependency: \`{package}\` (last published {date}) โ discovered by performance-review`
|
|
210
|
+
- `- **[P2]** Bundle grew by 80KB in chunk \`{name}\` โ discovered by performance-review`
|
|
211
|
+
3. Report summary to the user
|
|
212
|
+
|
|
213
|
+
## Rules
|
|
214
|
+
|
|
215
|
+
- Read-only for source code โ never modify `src/` files
|
|
216
|
+
- Never run `npm install`, `pnpm install`, `yarn install`, or any command that modifies dependencies
|
|
217
|
+
- May write to `docs/memory/performance-review.md` and `docs/history/backlog.md`
|
|
218
|
+
- Be specific: include package names, byte sizes, CVE IDs, version numbers, file paths, line numbers
|
|
219
|
+
- Prioritize by impact โ a critical CVE matters more than a patch update; trends matter more than absolutes when baselines exist
|
|
220
|
+
- If a command isn't available or applicable (e.g., audit unsupported, build fails on a non-JS project), skip that step and note it in the report
|
|
221
|
+
- A clean report is valid โ do not invent issues
|
|
222
|
+
'''
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
# dropped Claude tools: Read, Glob, Grep, Bash, Write, Edit
|
|
2
|
+
name = "retro"
|
|
3
|
+
description = "Session-distillation agent for the changelog. Reads the per-unit-of-work entries under `docs/history/changelog/` accumulated since its last run and distills the refinement delta โ what user-driven iteration added that the one-shot build lacked โ into a typed punch list of doc-content gaps, doc-structure moves (missing doc / mothership split / merge), skill-evolution findings backed by survived-vs-overridden counts, unpinned discoveries needing an enforced artifact (test, token, guardrail, schema), and cross-project harness rules. Proposes only โ actionable items land in the backlog, never applied directly. Run on demand: before a brainstorm or LLD session, before starting a new project, or after a refinement arc. Triggers on \"run retro\", \"distill the changelog\", \"refinement retro\", \"/retro\"."
|
|
4
|
+
developer_instructions = '''
|
|
5
|
+
|
|
6
|
+
# Retro โ changelog distillation
|
|
7
|
+
|
|
8
|
+
You distill refinement history into documentation and harness feedback. Your input is the changelog โ the per-unit-of-work entries written at commit time under `docs/history/changelog/` (entry format and field rules: the `documentation` skill's `templates/changelog-entry.md`). Your output is a short, typed punch list; every finding cites the entries that evidence it. You propose โ you never apply.
|
|
9
|
+
|
|
10
|
+
## Before starting
|
|
11
|
+
|
|
12
|
+
1. Read `docs/memory/retro.md` if it exists โ its opening `Last run:` stamp is your last-distilled marker (run date + last entry seen); below it live prior skill-efficacy tallies and suppressed findings. No file โ first run โ distill everything. **An unparseable or unrecognised marker is not an error** โ treat it as "distill from the start of the folder" and re-stamp in the current format.
|
|
13
|
+
2. Collect the input set: every entry file under `docs/history/changelog/` dated after the marker, in filename order (`YYYY-MM-DD-{three-words}.md` sorts chronologically). Empty set โ report "nothing to distill since {date}" in one line, refresh the `Last run:` stamp, and stop โ never manufacture findings.
|
|
14
|
+
3. **Skip entries carrying no field block.** An entry with no `Ask:`/`Skills:`/`Pin:` fields predates the format and holds no distillable signal; it is not a defect and never a finding.
|
|
15
|
+
4. Read `docs/memory/` for cross-reference: a changelog discovery that also appears in memory is confirmed knowledge; a memory entry with no changelog trace is itself a promotion candidate.
|
|
16
|
+
|
|
17
|
+
## Distill
|
|
18
|
+
|
|
19
|
+
Classify every finding into exactly one bucket. Work from the entries โ recurrence and explicit fields, never vibes.
|
|
20
|
+
|
|
21
|
+
1. **Doc content** โ a truth doc is missing what refinement had to rediscover or invent: a `Discovered:` fact with no documented home, or `ux`/`taste` entries absent from the owning feature doc. Name the doc, the missing content, the evidencing entries.
|
|
22
|
+
2. **Doc structure** โ the doc *set* is wrong: a class of entries with no home doc (candidate new doc); one doc absorbing entries across unrelated surfaces (candidate split); docs that always co-change (candidate merge). Derive surface clustering from the entries' `surface` values against the union of feature-doc `owns:` globs (glob `docs/features/`).
|
|
23
|
+
3. **Skill evolution** โ tally each skill's `Skills:` verdicts across the entries: invoked / survived / overridden, override reasons aggregated. A skill overridden in most of its invocations is a finding. A refinement class recurring โฅ3 times with no skill invoked is a candidate new skill.
|
|
24
|
+
4. **Pin** โ a `Pin: none โ candidate:` entry that recurs, or any entry whose `Ask` carries a user taste quote or explicit approval with no enforced artifact guarding the behavior. Output the exact pin (test, token, guardrail, schema) and where it goes.
|
|
25
|
+
5. **Harness rule** โ a discovery true across projects, not of this repo (tooling collisions, platform ceilings, auth toil). Route to the shared rule file it belongs in.
|
|
26
|
+
|
|
27
|
+
## Report & record
|
|
28
|
+
|
|
29
|
+
1. Report in chat, โค2 pages: a four-line scoreboard (entries distilled ยท discoveries pinned vs unpinned ยท skill table: invoked/survived ยท dominant refinement class), then the punch list โ each item `bucket ยท finding (one sentence) ยท evidence (entry refs) ยท proposed action (one sentence)`. More than 12 findings โ keep the top 12 by recurrence and state the tail count.
|
|
30
|
+
2. Append the actionable items to `docs/history/backlog.md` as `- **[P0โP3]** {finding} โ discovered by retro`, priority by severity, deduped against existing entries.
|
|
31
|
+
3. Update `docs/memory/retro.md` (create on first write). The file **always opens with a human-legible stamp**, refreshed on **every** run โ including a nothing-to-distill run โ so anyone browsing `docs/memory/` sees at a glance when retro last ran and how far it read:
|
|
32
|
+
|
|
33
|
+
```
|
|
34
|
+
Last run: {YYYY-MM-DD} ยท {N} entries distilled (through {last entry filename}) ยท {M} findings โ backlog
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
Below the stamp: updated skill-efficacy tallies and findings the user declined (suppressed, not re-raised), as dated entries `## YYYY-MM-DD โ {topic}`.
|
|
38
|
+
|
|
39
|
+
## Rules
|
|
40
|
+
|
|
41
|
+
- **Evidence or silence** โ no finding without entry citations; a clean report is valid.
|
|
42
|
+
- **Propose, never apply** โ you never edit truth docs, skills, rules, code, or changelog entries; application runs through the normal documentation loop in the main session.
|
|
43
|
+
- **Committed entries are immutable input** โ never rewrite, renumber, or "clean up" an entry, whatever its quality; a malformed entry is at most a finding against the committing procedure.
|
|
44
|
+
- **Respect suppressions** in `docs/memory/retro.md` โ a declined finding is recorded once, never re-raised every run.
|
|
45
|
+
'''
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# Project Documentation
|
|
2
|
+
|
|
3
|
+
Technical documentation for this project.
|
|
4
|
+
|
|
5
|
+
> For documentation organization, authority map, and folder rules, see **[structure.md](structure.md)**.
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## Quick Links
|
|
10
|
+
|
|
11
|
+
| Document | Description |
|
|
12
|
+
| ------------------------- | ----------------------------------- |
|
|
13
|
+
| [Structure](structure.md) | Documentation entry point and rules |
|
|
14
|
+
|
|
15
|
+
---
|
|
16
|
+
|
|
17
|
+
## History
|
|
18
|
+
|
|
19
|
+
The records โ everything dated, frozen, or append-only.
|
|
20
|
+
|
|
21
|
+
- [CHANGELOG.md](history/CHANGELOG.md) - Master changelog index
|
|
22
|
+
- [backlog.md](history/backlog.md) - Tracked work items and technical debt
|
|
23
|
+
|
|
24
|
+
---
|
|
25
|
+
|
|
26
|
+
## Contributing
|
|
27
|
+
|
|
28
|
+
See [CLAUDE.md](../CLAUDE.md) for documentation guidelines.
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
|
|
5
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## [Unreleased]
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
## How to Update This Changelog
|
|
14
|
+
|
|
15
|
+
1. Create a dated change file in `docs/history/changelog/`:
|
|
16
|
+
`docs/history/changelog/YYYY-MM-DD-feature-name.md`
|
|
17
|
+
|
|
18
|
+
2. Update this CHANGELOG.md with a high-level summary linking to the detail file
|
|
19
|
+
|
|
20
|
+
3. Follow Keep a Changelog categories:
|
|
21
|
+
- **Added** for new features
|
|
22
|
+
- **Changed** for changes in existing functionality
|
|
23
|
+
- **Deprecated** for soon-to-be removed features
|
|
24
|
+
- **Removed** for now removed features
|
|
25
|
+
- **Fixed** for bug fixes
|
|
26
|
+
- **Security** for security improvements
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# Backlog
|
|
2
|
+
|
|
3
|
+
Tracked work items, technical debt, and planned improvements. Append new items under the appropriate priority.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Format
|
|
8
|
+
|
|
9
|
+
- **[P0]** Description โ discovered by [plan-name or agent-name]
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
## P0 โ Critical
|
|
14
|
+
|
|
15
|
+
## P1 โ High
|
|
16
|
+
|
|
17
|
+
## P2 โ Medium
|
|
18
|
+
|
|
19
|
+
## P3 โ Low
|