adding-framework-support
Skill197 starsChanged 2 months agoMITView on GitHub
Read wizard-development for the shared design policy and gateway contract. New agent work uses Pi and prefers the orchestrator; adding a framework extends the integration program without creating its own runner or changing existing routing defaults. Start with FrameworkConfig and a nearby example under src/programs/frameworks. Framework-specific detection, context, environment conventions, and UI metadata belong here. Integration instructions and examples belong in context-mill. 1. Add the integration to Integration. Its order controls first-match detection and the framework picker. Keep specific frameworks…
In this repository7 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- e2e-tests/test-applications/react-native-test-app/.cursor/rules/posthog-integration.mdcCursor rule
- adding-skill-programSkill
- exploring-the-wizardSkill
- ink-tuiSkill
- wizard-developmentSkill
The file
We split this skill into the rules it gives an agent
12 rules. About 0 are common, 4 are distinctive, and 8 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
8
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 16
Read wizard-development for the shared design policy and gateway contract.
- Distinctive: line 23
Start with FrameworkConfig and a nearby example under src/programs/frameworks.
- Distinctive: line 28
Add the integration to Integration.
- Very specific: line 33
Add the config under src/programs/frameworks/<name>/<name>-wizard-agent.ts.
- Very specific: line 36
Import the config into FRAMEWORK_REGISTRY.
- Very specific: line 39
Read the current interface for the complete required fields.
- Very specific: line 46
Use usesPackageJson: false for frameworks without a package.json dependency.
- Very specific: line 62
Use bounded filesystem helpers for project scans and reads.
- Distinctive: line 69
Ensure context-mill supplies the matching integration reference and task-skill variants for the framework.
- Very specific: line 76
Keep project-specific facts in configuration and reusable integration guidance in that content.
- Distinctive: line 84
Check detection against the target framework and the closest overlapping framework/fallback.
- Very specific: line 97
Use the proportionate validation guidance in wizard-development.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Adding Framework Support
Read wizard-development for the shared design policy and gateway contract. New agent work uses Pi and prefers the orchestrator; adding a framework extends the integration program without creating its own runner or changing existing routing defaults.
Extend the framework configuration
Start with FrameworkConfig and a nearby example under src/programs/frameworks. Framework-specific detection, context, environment conventions, and UI metadata belong here. Integration instructions and examples belong in context-mill.
- Add the integration to Integration. Its order controls first-match detection and the framework picker. Keep specific frameworks before language fallbacks and generic Node last; preserve the overlap rules in the detection checks.
- Add the config under
src/programs/frameworks/<name>/<name>-wizard-agent.ts. Use atypefor framework context so it satisfiesRecord<string, unknown>. Export the config; the integration program already supplies execution. - Import the config into FRAMEWORK_REGISTRY.
The display label comes from
metadata.name.
Read the current interface for the complete required fields. In particular,
detection.detectPackageManager is required: reuse an adapter from
package-manager detection. Use
metadata.setup.questions for unresolved project variants; gatherContext
collects framework context. Optional notices and extra MCP servers also belong
in metadata.
Use usesPackageJson: false for frameworks without a package.json dependency.
Their required getVersion callback can return undefined. Minimum-version
checking requires both minimumVersion and getInstalledVersion; unknown
versions pass. Context detection
returns unsupported-version data for the integration UI rather than aborting
itself.
Detection and examples
| Starting point | Pattern to reuse |
| Next.js | hasDeclaredDependency from utils/package-json, tryGetPackageJson from utils/setup-utils, and router setup questions |
| Django | Python project files, context gathering, and Python package-manager detection |
| Laravel | Composer and framework-specific filesystem signals |
| Rails | Gemfile detection and Ruby conventions |
Use bounded filesystem helpers for project
scans and reads. They bound traversal and skip dependency/build directories; add
framework-specific exclusions with extraIgnore. Keep complex parsers and
detectors beside the config so they can be checked independently.
Complete the content side
Ensure context-mill supplies the matching integration reference and task-skill variants for the framework. A registry entry alone does not provide integration knowledge. The orchestrator resolves framework variants from the skill menu and rejects missing task variants; see the orchestrator runner.
Keep project-specific facts in configuration and reusable integration guidance in that content. Model IDs, reasoning efforts, and gateway-required system prompts follow the cross-repo contract in wizard-development; a framework config cannot enable a new gateway model.
Verify the changed behavior
Check detection against the target framework and the closest overlapping framework/fallback. Reuse the existing detection checks; add a focused case only for behavior they do not cover. Confirm package-manager selection and matching content-mill variants. For an end-to-end run, use a disposable test app and the exploration guide.
For prompt, environment-upload, or outro changes, inspect the current
integration program and the
selected sequence. Some fields remain in the interface without a current
consumer: getOutroNextSteps is not used by the integration outro. Linear
post-run/outro hooks are not shared by the orchestrator; see the
program guide.
Use the proportionate validation guidance in wizard-development. Documentation-only changes need source/link checks, not an agent run.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

