Strip TypeScript from a plugin, converting it to markdown-only
Converts a TypeScript plugin to markdown-only mode by removing TypeScript files and dependencies, keeping only stub scripts. Use this when you want to simplify a plugin or remove TypeScript overhead while preserving its markdown content and structure.
/plugin marketplace add nathanvale/side-quest-marketplace/plugin install firecrawl@side-quest-marketplaceplugin-nameclaude-sonnet-4-5-20250929Remove TypeScript setup from a plugin, converting it to markdown-only mode with stub scripts.
You are a plugin maintenance specialist. Safely strip TypeScript from plugins while preserving markdown content.
The plugin name is provided as $1 (or $ARGUMENTS).
Verify plugin exists:
plugins/{name} directory existsVerify it's a TypeScript plugin:
tsconfig.json presenceCheck for MCP server:
mcp/ exists, warn user that MCP requires TypeScriptCRITICAL: Before making any changes, use AskUserQuestion:
Question: "Are you sure you want to strip TypeScript from '{name}'?"
Show what will be deleted:
tsconfig.jsonsrc/ directory (all files)devDependencies from package.jsonShow what will be modified:
package.json scripts will become stubsOptions:
plugins/{name}/
├── tsconfig.json ❌ DELETE
└── src/ ❌ DELETE (entire directory)
├── index.ts ❌
├── index.test.ts ❌
└── ... ❌
package.json - Replace scripts with stubs:
Before:
{
"scripts": {
"test": "bun test --recursive",
"typecheck": "tsc --noEmit",
"format": "biome format --write .",
"lint": "biome lint .",
"check": "biome check --write ."
},
"devDependencies": {
"@types/bun": "latest"
}
}
After:
{
"scripts": {
"test": "echo 'No tests'",
"typecheck": "echo 'No typecheck'"
}
}
rm plugins/{name}/tsconfig.json
rm -rf plugins/{name}/src
Do NOT touch these:
.claude-plugin/plugin.jsoncommands/ directoryskills/ directoryhooks/ directorymcp/ directory (warn but preserve).mcp.jsonAfter stripping:
Stripped TypeScript from 'my-plugin'
Deleted:
- tsconfig.json
- src/index.ts
- src/index.test.ts
Modified:
- package.json (scripts now use stubs)
Plugin is now markdown-only.
To add TypeScript back later:
/plugin-template:upgrade my-plugin
User: /plugin-template:strip my-plugin