Skip to content

An open source design system that's fully customizable and agent ready

TypeScript

docs(cli): remove lingering gap-report references (#3415)

EJ Hammond0f66be79dc1d
diff --git a/.changeset/remove-gap-report-doc-remnants.md b/.changeset/remove-gap-report-doc-remnants.md
new file mode 100644
index 0000000000..79874f4bd7
--- /dev/null
+++ b/.changeset/remove-gap-report-doc-remnants.md
@@ -0,0 +1,7 @@
+---
+'@astryxdesign/cli': patch
+---
+
+[docs] Remove lingering references to the removed gap-report feature and swizzle gap flags; docs now reflect swizzle's maintainer feedback link.
+
+@ejhammond
diff --git a/.claude/commands/curate-gaps.md b/.claude/commands/curate-gaps.md
deleted file mode 100644
index 46eab0266c..0000000000
--- a/.claude/commands/curate-gaps.md
+++ /dev/null
@@ -1,113 +0,0 @@
-# Curate Gap Reports
-
-Analyze open gap reports and produce a curated gap analysis issue.
-
-## Arguments
-
-$ARGUMENTS
-
-Use `--close` to close raw gap reports after curating (links them to the analysis issue).
-
-## Instructions
-
-### 1. Fetch all open gap reports
-
-```bash
-gh issue list --repo facebookexperimental/xds --label gap-report --state open --json number,title,body,createdAt --limit 200
-```
-
-If there are zero open gap reports, tell the user and stop.
-
-### 2. Parse and analyze
-
-For each issue, extract:
-
-- **Component** (from the table in the body)
-- **Category** (from the table)
-- **Source** (interactive, llm-auto, cli)
-- **User Intention** (the section after "## User Intention")
-
-Focus on **user intention** — what builders were trying to achieve — not specific prop/API requests.
-
-### 3. Group by themes
-
-Identify high-level themes across the reports:
-
-- Common intentions (e.g. "need dense/compact variants", "missing responsive behavior")
-- Component hotspots (which components appear most often)
-- Category distribution
-
-### 4. Create curated analysis issue
-
-Create the label first, then the issue:
-
-```bash
-gh label create gap-analysis --repo facebookexperimental/xds --color 0E8A16 --description "Curated gap analysis summary" --force
-```
-
-Then create the issue. Use this format for the body:
-
-```
-## Gap Analysis: <Month> <Year>
-
-**<N> gap reports analyzed** | Period: <earliest date> — <latest date>
-
-### Top User Intentions
-
-1. **<Theme>** (<count> reports)
- - <Summarized intention>
- - Evidence: #<issue>, #<issue>
-
-2. **<Theme>** (<count> reports)
- - <Summarized intention>
- - Evidence: #<issue>, #<issue>
-
-(continue for all themes)
-
-### Component Hotspots
-
-| Component | Reports | Top Category |
-|-----------|---------|-------------|
-| <Name> | <N> | <category> |
-
-### Category Distribution
-
-| Category | Count |
-|----------|-------|
-| <cat> | <N> |
-
-### Recommendations
-
-1. <Actionable recommendation based on evidence>
-2. <Actionable recommendation based on evidence>
-
-<details>
-<summary>Raw Reports (<N> total)</summary>
-
-| # | Component | Category | Intention |
-|---|-----------|----------|-----------|
-| #<num> | <comp> | <cat> | <brief intention> |
-
-</details>
-```
-
-Create the issue:
-
-```bash
-gh issue create --repo facebookexperimental/xds --title "Gap Analysis: <Month> <Year> — <primary theme>" --label gap-analysis --body "<body>"
-```
-
-### 5. Optionally close raw reports
-
-Only if the user passed `--close` as an argument:
-
-For each raw gap report, add a comment and close it:
-
-```bash
-gh issue comment <number> --repo facebookexperimental/xds --body "Curated into gap analysis #<analysis-issue-number>"
-gh issue close <number> --repo facebookexperimental/xds
-```
-
-### 6. Report results
-
-Print the URL of the created gap analysis issue and a summary of what was processed.
diff --git a/.github/scripts/api-cli-parity-test.mjs b/.github/scripts/api-cli-parity-test.mjs
index e4f8bc0a18..525766966f 100644
--- a/.github/scripts/api-cli-parity-test.mjs
+++ b/.github/scripts/api-cli-parity-test.mjs
@@ -257,7 +257,6 @@ add('doctor', ['doctor'], () => apiCall(api.doctor, {cwd: ROOT}));
// Other commands — probe with safe read-only args (no API yet)
const otherCommands = [
['swizzle', '--list'],
- ['gap-report', '--list-categories'],
['upgrade', '--list'],
];
for (const args of otherCommands) {
diff --git a/.github/scripts/cli-json-smoke-test.mjs b/.github/scripts/cli-json-smoke-test.mjs
index 9c9a2944c3..bbca61bd50 100644
--- a/.github/scripts/cli-json-smoke-test.mjs
+++ b/.github/scripts/cli-json-smoke-test.mjs
@@ -234,10 +234,6 @@ console.log('\nswizzle --json');
checkJson('swizzle --list', ['swizzle', '--list'], {expectType: 'swizzle.list'});
checkJson('swizzle (not found)', ['swizzle', 'NonexistentComponent99'], {expectError: true});
-// ── Gap report ───────────────────────────────────────────────────────
-console.log('\ngap-report --json');
-checkJson('gap-report --list-categories', ['gap-report', '--list-categories'], {expectType: 'gap-report.categories'});
-
// ── Summary ──────────────────────────────────────────────────────────
console.log(`\n${passed + failed} checks: ${passed} passed, ${failed} failed`);
console.log(`types seen: ${[...seenTypes].sort().join(', ')}`);
diff --git a/CLAUDE.md b/CLAUDE.md
index 2bc5bc24de..cbb6e24c19 100644
--- a/CLAUDE.md
+++ b/CLAUDE.md
@@ -132,12 +132,11 @@ ON DEMAND:
$XDS component <Name> --dense # props, variants, usage, anatomy for one component
$XDS template <name> # emit full page source
$XDS template <name> --skeleton # layout skeleton with spatial annotations
-$XDS swizzle <Name> # eject component source (use --gap to report why)
+$XDS swizzle <Name> # eject component source for deep customization
$XDS upgrade --apply # run version migration codemods
OPTIONS: --detail compact|brief less output | --dense token-efficient | --zh Chinese
RULE: always run bootstrap on each branch — docs reflect the branch's actual API
RULE: always run $XDS component <Name> --dense before modifying a component
RULE: after @astryxdesign/core bump, always run $XDS upgrade --apply
-RULE: when swizzling, always use --gap to report missing capabilities
<!-- XDS-CLI:END -->
diff --git a/apps/sandbox/scripts/generate-cli-registry.mjs b/apps/sandbox/scripts/generate-cli-registry.mjs
index d06a9df9a8..cfa17b8ddc 100644
--- a/apps/sandbox/scripts/generate-cli-registry.mjs
+++ b/apps/sandbox/scripts/generate-cli-registry.mjs
@@ -42,7 +42,6 @@ const commandModules = [
{name: 'docs', path: './commands/docs.mjs', register: 'registerDocs'},
{name: 'swizzle', path: './commands/swizzle.mjs', register: 'registerSwizzle'},
{name: 'template', path: './commands/template.mjs', register: 'registerTemplate'},
- {name: 'gap-report', path: './commands/gap-report.mjs', register: 'registerGapReport'},
{name: 'upgrade', path: './commands/upgrade.mjs', register: 'registerUpgrade'},
{name: 'theme', path: './commands/build-theme.mjs', register: 'registerTheme'},
{name: 'discover', path: './commands/discover.mjs', register: 'registerDiscover'},
diff --git a/packages/cli/CONTRIBUTING.md b/packages/cli/CONTRIBUTING.md
index ab90b6184f..78751dbe98 100644
--- a/packages/cli/CONTRIBUTING.md
+++ b/packages/cli/CONTRIBUTING.md
@@ -36,7 +36,6 @@ src/
swizzle.mjs # CLI-only (side-effect: copies + rewrites imports)
build-theme.mjs # CLI-only (side-effect: compiles theme to CSS)
upgrade.mjs # CLI-only (side-effect: runs codemods)
- gap-report.mjs # CLI-only (side-effect: files GitHub issues)
init.mjs # CLI-only (interactive prompts)
lib/
json.mjs # jsonOut(type, data), jsonError(msg) — internal
@@ -51,7 +50,6 @@ src/
swizzle.d.ts # SwizzleListResponse, SwizzleCopyResponse
theme.d.ts # ThemeBuildResponse
upgrade.d.ts # UpgradeListResponse, UpgradeRunResponse
- gap-report.d.ts # GapReportCategoriesResponse, GapReportFileResponse
index.d.ts # barrel re-export
```
@@ -61,7 +59,7 @@ src/
**Yes** if the command returns data that consumers might want programmatically — component docs, template source, lists, search results. Put the logic in `src/api/`, export from `@astryxdesign/cli/api`, and make the CLI handler a thin wrapper.
-**No** if the command is purely interactive or only makes sense in a terminal — `init` (interactive prompts), `gap-report setup` (config wizard). These can live entirely in `src/commands/`.
+**No** if the command is purely interactive or only makes sense in a terminal — `init` (interactive prompts). These can live entirely in `src/commands/`.
**Rule of thumb:** if it supports `--json`, it should have an API function. The parity test (`api-cli-parity-test.mjs`) will flag any `--json` type that doesn't have API coverage.
@@ -202,6 +200,7 @@ packages/cli/templates/{name}/
3. Done — auto-discovered by `astryx template --list` and the `template()` API function
**Rules:**
+
- No extra files — no CSS, no images, no other assets. Everything lives in `page.tsx`.
- Images must use external URLs (e.g. Unsplash), not local imports.
- All styles must use StyleX or inline styles, not separate CSS files.
@@ -237,12 +236,12 @@ This is a breaking change for `@astryxdesign/cli/api` consumers. Bump the versio
### Response types: `{Command}{Mode}{SubMode?}Response`
-| Part | Rule | Examples |
-|---------|-------------------------|----------|
-| Command | PascalCase command name | `Component`, `Discover`, `ThemeBuild` |
+| Part | Rule | Examples |
+| ------- | ----------------------- | --------------------------------------------------------------------------------- |
+| Command | PascalCase command name | `Component`, `Discover`, `ThemeBuild` |
| Mode | What the response IS | `List`, `Brief`, `Detail`, `Search`, `Copy`, `Build`, `Run`, `Categories`, `File` |
-| SubMode | Narrower view of Mode | `Props`, `Source`, `Doc`, `Section` |
-| Suffix | Always `Response` | |
+| SubMode | Narrower view of Mode | `Props`, `Source`, `Doc`, `Section` |
+| Suffix | Always `Response` | |
### Entry types: `{Command}{What}Entry`
diff --git a/packages/cli/README.md b/packages/cli/README.md
index 1f037e5217..1b81e9c4ad 100644
--- a/packages/cli/README.md
+++ b/packages/cli/README.md
@@ -62,7 +62,6 @@ Options:
| `upgrade` | Run codemods to migrate between versions |
| `theme build` | Compile a defineTheme file to production CSS and JS |
| `discover` | Discover external packages and components |
-| `gap-report` | Report a gap when a component doesn't meet your needs |
| `doctor` | Diagnose your XDS setup and report problems with fixes (CI-friendly via exit code) |
### Global options
@@ -161,7 +160,6 @@ if (isError(result)) {
| `ERR_INVALID_VERSION` | A `--from`/`--to` value was not a valid semver string. |
| `ERR_DEP_MISSING` | A required external dependency (e.g. jscodeshift) is missing. |
| `ERR_GH_CLI` | GitHub CLI (`gh`) is not installed or not authenticated. |
-| `ERR_GAP_REPORT_FAILED` | Filing a gap report failed (disabled, or the integration errored). |
## Capability manifest (agent discovery)
@@ -358,8 +356,6 @@ Every response has a `type` string that uniquely identifies it:
| `xds --json theme build <file>` | `theme.build` | `ThemeBuildResponse` |
| `xds --json upgrade --list` | `upgrade.list` | `UpgradeListResponse` |
| `xds --json upgrade [--apply]` | `upgrade.run` | `UpgradeRunResponse` |
-| `xds --json gap-report --list-categories` | `gap-report.categories` | `GapReportCategoriesResponse` |
-| `xds --json gap-report --component X ...` | `gap-report.file` | `GapReportFileResponse` |
| `xds --json doctor` | `doctor` | `DoctorResponse` |
| any error | — | `CLIError` |
| unsupported command | — | `CLIUnsupportedError` |
@@ -434,8 +430,6 @@ export default {
templates: {
get: async id => fetchTemplateFromAPI(id),
},
- gapReport: {
- url: 'https://your-api.com/gaps',
- },
+ issuesUrl: 'https://github.com/your-org/your-repo/issues',
};
```
diff --git a/packages/cli/src/commands/agent-docs.mjs b/packages/cli/src/commands/agent-docs.mjs
index f5f023c9c6..14160340ca 100644
--- a/packages/cli/src/commands/agent-docs.mjs
+++ b/packages/cli/src/commands/agent-docs.mjs
@@ -207,7 +207,7 @@ export function generateCompressedIndex(version, {coreDir, runPrefix = getRunPre
.sort();
if (topics.length > 0) lines.push(` docs <topic> ${topics.join(', ')}`);
}
- lines.push(' swizzle <Name> eject component source (--gap reports why)');
+ lines.push(' swizzle <Name> eject component source for deep customization');
lines.push(' upgrade --apply run after any @astryxdesign/core bump');
lines.push(MARKER_END);
diff --git a/packages/core/README.md b/packages/core/README.md
index 3179885cfa..daaf81132b 100644
--- a/packages/core/README.md
+++ b/packages/core/README.md
@@ -43,7 +43,6 @@ npx astryx theme build # build theme CSS for production
npx astryx swizzle Button # eject component source for customization
npx astryx upgrade --apply # run codemods to migrate between versions
npx astryx discover # discover external XDS packages
-npx astryx gap-report # report a missing capability
```
## Related Packages