Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
5486833
fix: scaffold runs meta skills sequentially instead of all-at-once
KyleAMathews Mar 4, 2026
5a116fb
fix: validator checks packaging setup and description char limit
KyleAMathews Mar 4, 2026
bdb90b2
fix: show SKILL.md file paths in list output
KyleAMathews Mar 4, 2026
ab8eb4f
fix: scaffold gathers context autonomously instead of asking maintainer
KyleAMathews Mar 4, 2026
ef287e9
fix: feedback logs errors on gh failure and accepts Markdown files
KyleAMathews Mar 4, 2026
6ad0953
fix: shim uses .mjs by default, .js when package has type:module
KyleAMathews Mar 4, 2026
dc3393b
feat: add cross_references section to domain map schema
KyleAMathews Mar 4, 2026
e0d31bd
feat: setup --labels creates feedback labels on GitHub repo
KyleAMathews Mar 4, 2026
6a52368
ci: apply automated fixes
autofix-ci[bot] Mar 4, 2026
9d7e3f7
fix: setup --labels creates per-skill feedback labels, not meta labels
KyleAMathews Mar 4, 2026
9eba700
ci: apply automated fixes
autofix-ci[bot] Mar 4, 2026
db1eefa
fix: feedback skill submits directly via gh, no CLI intermediary
KyleAMathews Mar 4, 2026
110018c
ci: apply automated fixes
autofix-ci[bot] Mar 4, 2026
9998241
rename init → install, align with library CLI prompt approach
KyleAMathews Mar 4, 2026
dfc7cc1
remove feedback CLI command — agents submit via gh directly
KyleAMathews Mar 4, 2026
533046c
ci: apply automated fixes
autofix-ci[bot] Mar 4, 2026
66b0392
apply code review and simplification fixes
KyleAMathews Mar 4, 2026
b59340a
ci: apply automated fixes
autofix-ci[bot] Mar 4, 2026
3507f58
fix: unexport internal display helpers to pass knip
KyleAMathews Mar 4, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 0 additions & 22 deletions docs/intent/functions/detectAgentConfigs.md

This file was deleted.

22 changes: 0 additions & 22 deletions docs/intent/functions/hasIntentBlock.md

This file was deleted.

22 changes: 0 additions & 22 deletions docs/intent/functions/injectIntentBlock.md

This file was deleted.

22 changes: 0 additions & 22 deletions docs/intent/functions/readProjectConfig.md

This file was deleted.

22 changes: 0 additions & 22 deletions docs/intent/functions/runInit.md

This file was deleted.

2 changes: 1 addition & 1 deletion docs/intent/functions/runSetup.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ function runSetup(
args): SetupResult;
```

Defined in: [setup.ts:140](https://github.com/TanStack/intent/blob/main/packages/intent/src/setup.ts#L140)
Defined in: [setup.ts:164](https://github.com/TanStack/intent/blob/main/packages/intent/src/setup.ts#L164)

## Parameters

Expand Down
2 changes: 1 addition & 1 deletion docs/intent/functions/submitMetaFeedback.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ title: submitMetaFeedback
function submitMetaFeedback(payload, opts): SubmitResult;
```

Defined in: [feedback.ts:329](https://github.com/TanStack/intent/blob/main/packages/intent/src/feedback.ts#L329)
Defined in: [feedback.ts:332](https://github.com/TanStack/intent/blob/main/packages/intent/src/feedback.ts#L332)

## Parameters

Expand Down
22 changes: 0 additions & 22 deletions docs/intent/functions/writeProjectConfig.md

This file was deleted.

6 changes: 0 additions & 6 deletions docs/intent/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,21 +26,15 @@ title: "@tanstack/intent"

- [checkStaleness](functions/checkStaleness.md)
- [containsSecrets](functions/containsSecrets.md)
- [detectAgentConfigs](functions/detectAgentConfigs.md)
- [findSkillFiles](functions/findSkillFiles.md)
- [hasGhCli](functions/hasGhCli.md)
- [hasIntentBlock](functions/hasIntentBlock.md)
- [injectIntentBlock](functions/injectIntentBlock.md)
- [metaToMarkdown](functions/metaToMarkdown.md)
- [parseFrontmatter](functions/parseFrontmatter.md)
- [readProjectConfig](functions/readProjectConfig.md)
- [resolveFrequency](functions/resolveFrequency.md)
- [runInit](functions/runInit.md)
- [runSetup](functions/runSetup.md)
- [scanForIntents](functions/scanForIntents.md)
- [submitFeedback](functions/submitFeedback.md)
- [submitMetaFeedback](functions/submitMetaFeedback.md)
- [toMarkdown](functions/toMarkdown.md)
- [validateMetaPayload](functions/validateMetaPayload.md)
- [validatePayload](functions/validatePayload.md)
- [writeProjectConfig](functions/writeProjectConfig.md)
23 changes: 11 additions & 12 deletions packages/intent/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ pnpm add -D @tanstack/intent

### For library consumers

Set up intent discovery in your project's agent config files (CLAUDE.md, .cursorrules, etc.):
Set up skill-to-task mappings in your project's agent config files (CLAUDE.md, .cursorrules, etc.):

```bash
npx intent init
npx intent install
```

List available skills from installed packages:
Expand Down Expand Up @@ -50,16 +50,15 @@ npx intent setup

## CLI Commands

| Command | Description |
| ----------------------- | ----------------------------------------------- |
| `intent init` | Inject intent discovery into agent config files |
| `intent list [--json]` | Discover intent-enabled packages |
| `intent meta` | List meta-skills for library maintainers |
| `intent scaffold` | Print the guided skill generation prompt |
| `intent validate [dir]` | Validate SKILL.md files |
| `intent setup` | Copy CI workflow templates |
| `intent stale [--json]` | Check skills for version drift |
| `intent feedback` | Submit skill feedback |
| Command | Description |
| ----------------------- | --------------------------------------------------- |
| `intent install` | Set up skill-to-task mappings in agent config files |
| `intent list [--json]` | Discover intent-enabled packages |
| `intent meta` | List meta-skills for library maintainers |
| `intent scaffold` | Print the guided skill generation prompt |
| `intent validate [dir]` | Validate SKILL.md files |
| `intent setup` | Copy CI templates, generate shim, create labels |
| `intent stale [--json]` | Check skills for version drift |

## License

Expand Down
45 changes: 40 additions & 5 deletions packages/intent/meta/domain-discovery/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,30 @@ only considers one side.
Target 2–4 tensions. If you find none, the skills may be too isolated —
revisit whether you're missing cross-connections.

### 3f — Identify gaps
### 3f — Map cross-references

Beyond tensions (conflicts) and shared failure modes, identify skills
that illuminate each other without conflicting. A cross-reference means:
"an agent loading skill A would produce better code if it knew about
skill B." These become "See also" pointers in the generated SKILL.md
files.

For each pair, note:

- Which skill references which (can be bidirectional)
- Why awareness of the other skill improves output

Examples:

- A quickstart skill references the security checklist ("after setup, audit")
- A state management skill references an SSR skill ("state hydration
requires understanding SSR lifecycle")
- A data writing skill references a data reading skill ("writes affect
how queries invalidate")

Output these in the `cross_references` section of domain_map.yaml.

### 3g — Identify gaps

For each skill, explicitly list what you could NOT determine from docs
and source alone. These become interview questions in Phase 4.
Expand All @@ -351,7 +374,7 @@ Common gaps:
- "GitHub issues show confusion about X but docs don't address it"
- "I found two patterns for doing X — unclear which is current/preferred"

### 3g — Discover composition targets
### 3h — Discover composition targets

Scan `package.json` for peer dependencies, optional dependencies, and
`peerDependenciesMeta`. Scan example directories and integration tests
Expand All @@ -363,7 +386,7 @@ for import patterns. For each frequently co-used library, log:

These become targeted composition questions in Phase 4e.

### 3h — Produce the draft
### 3i — Produce the draft

Write the full `domain_map.yaml` (format in Output Artifacts below) with
a `status: draft` field. Flag every gap in the `gaps` section.
Expand Down Expand Up @@ -405,7 +428,7 @@ Follow up on any corrections. Then:

### 4b — Gap-targeted questions (3–8 questions)

For each gap flagged in Phase 3f, ask a specific question. These are not
For each gap flagged in Phase 3g, ask a specific question. These are not
generic — they reference what you found:

**Instead of:** "What do developers get wrong?"
Expand Down Expand Up @@ -472,7 +495,7 @@ These surface knowledge that doesn't appear in any docs:

### 4e — Composition questions (if library interacts with others)

Use what you discovered in Phase 3g. For each integration target
Use what you discovered in Phase 3h. For each integration target
identified from peer dependencies and example code, ask targeted
questions:

Expand Down Expand Up @@ -573,6 +596,11 @@ tensions:
description: '[what conflicts — one sentence]'
implication: '[what an agent gets wrong when it only considers one side]'

cross_references:
- from: '[skill-slug]'
to: '[skill-slug]'
reason: '[why loading one skill benefits from awareness of the other]'

gaps:
- skill: '[skill slug]'
question: '[what still needs input]'
Expand Down Expand Up @@ -618,6 +646,12 @@ not promotional.]
| -------------- | ------------------- | ----------------------- |
| [short phrase] | [slug-a] ↔ [slug-b] | [what agents get wrong] |

## Cross-References

| From | To | Reason |
| ------ | ------ | ----------------------------------------- |
| [slug] | [slug] | [why awareness of one improves the other] |

## Subsystems & Reference Candidates

| Skill | Subsystems | Reference candidates |
Expand Down Expand Up @@ -672,6 +706,7 @@ not promotional.]
| Subsystems flagged | Skills with 3+ adapters/backends list them as subsystems |
| Dense surfaces flagged | Topics with >10 patterns noted as reference_candidates |
| Lifecycle skills considered | Suggest journey skills when docs have the material |
| Cross-references mapped | Skills that illuminate each other get "See also" pointers |

---

Expand Down
Loading
Loading