strip-demo
Skill81 starsChanged 3 months agoMITView on GitHub
Audit-first workflow for removing SpeedPy demo/placeholder content from a fork before production. Reads the demo-content.json manifest, searches for SPEEDPY_DEMO markers, produces a removal plan, and waits for confirmation before making any changes.
In this repository6 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .cursor/rules/api.mdcCursor rule
- add-integration-apiSkill
- applikuSkill
- start-speedpySkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
16 rules. About 0 are common, 6 are distinctive, and 10 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
10
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 17
Read these files before starting:
- Very specific: line 27
Parse the manifest: Read demo-content.json and list every artifact by category.
- Very specific: line 29
Scan for markers: Run rg SPEEDPY_DEMO across the project.
- Very specific: line 34
If demoapp/migrations/ exists and migrations have been applied, warn about data migration needs.
- Distinctive: line 35
Ask the user to confirm their scenario.
- Very specific: line 37
Identify test dependencies: Check which test files import from demoapp or reference demo API endpoints.
- Distinctive: line 43
Test files that need endpoint migration
- Distinctive: line 46
Stop here and ask for confirmation: Do not proceed to Phase 2 without explicit user approval.
- Distinctive: line 50
Only perform removals that the user explicitly approved.
- Very specific: line 52
Remove
demoapp/: Delete the directory, templates, INSTALLED_APPS entry, and URL include. - Very specific: line 54
Remove Product API: Delete mainapp/api/products.py, remove imports/exports from __init__.py and api_urls.py, remove scopes and tags from …
- Very specific: line 56
Remove demo job entry points: Remove DemoJobCreateView, run_demo_job task, and their URL/import/export references.
- Very specific: line 58
Remove DEMO_MODE: Remove the setting, context processor, template context processor reference, and template conditional blocks.
- Very specific: line 62
Clean up SpeedPy UI preview: Remove the "Demo App / CRUD Screens" section from the preview template.
- Very specific: line 64
Clean up examples and docs: Remove product-specific CLI/MCP references.
- Distinctive: line 66
Update README: Remove demo API references.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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
/strip-demo — Strip demo content for production
Audit-first workflow for turning a SpeedPy fork into a clean production app skeleton. This skill reads the manifest and markers, produces a plan, and requires explicit confirmation before editing or deleting anything.
Prerequisites
Read these files before starting:
AGENTS.md/AGENTS-local.md— project conventions and mode-specific commandsPRODUCTION_READY.md— human checklist (the source of truth for removal steps)demo-content.json— machine-readable manifest of all demo artifacts
Workflow
Phase 1 — Audit (read-only, always safe)
- Parse the manifest. Read
demo-content.jsonand list every artifact by category. - Scan for markers. Run
rg SPEEDPY_DEMOacross the project. Cross-reference with the manifest to confirm every marker is accounted for. - Check path existence. For each artifact in the manifest, verify whether its paths exist in the current working tree. Note any already-removed items.
- Detect database state. Determine if this is a fresh clone (no production data) or an existing database:
- If
demoapp/migrations/exists and migrations have been applied, warn about data migration needs. - Ask the user to confirm their scenario.
- If
- Identify test dependencies. Check which test files import from
demoappor reference demo API endpoints. List these as items that need migration to non-demo endpoints. - Present the removal plan. Organize findings into sections matching
PRODUCTION_READY.md:- Items to delete (
safe_remove) - Items to review before deciding (
review) - Items to replace with fork-owner content (
replace) - Test files that need endpoint migration
- Database actions needed (if existing DB)
- Items to delete (
Stop here and ask for confirmation. Do not proceed to Phase 2 without explicit user approval.
Phase 2 — Execute (destructive, only after confirmation)
Only perform removals that the user explicitly approved. For each approved section:
- Remove
demoapp/. Delete the directory, templates, INSTALLED_APPS entry, and URL include. - Remove Product API. Delete
mainapp/api/products.py, remove imports/exports from__init__.pyandapi_urls.py, remove scopes and tags from settings. - Remove demo job entry points. Remove
DemoJobCreateView,run_demo_jobtask, and their URL/import/export references. KeepAsyncJobandJobStatusViewunless the user explicitly opted to remove them. - Remove DEMO_MODE. Remove the setting, context processor, template context processor reference, and template conditional blocks.
- Remove
appliku_demo.yml. - Clean up SpeedPy UI preview. Remove the "Demo App / CRUD Screens" section from the preview template.
- Clean up examples and docs. Remove product-specific CLI/MCP references. Note that
generated_tools.pyshould be regenerated. - Update README. Remove demo API references.
Phase 3 — Verify
- Run verification checks:
# No remaining demo markers (exclude guidance files)
rg SPEEDPY_DEMO --glob '!PRODUCTION_READY.md' --glob '!demo-content.json' --glob '!AGENTS.md' --glob '!README.md' --glob '!.claude/skills/strip-demo/*'
# No remaining demo references
rg "demoapp" --type py --type html
rg "demo_product" --type py --type html
rg "/api/v1/products/" --type py
rg "run_demo_job" --type py
rg "/api/v1/jobs/demo/" --type py
rg "DEMO_MODE" --type py --type html
# Django checks
python manage.py check
# Tests pass
python manage.py test
# Schema validates
python manage.py spectacular --file /tmp/speedpy-openapi.yaml --validate- Report results. Summarize what was removed, what was kept, and any remaining references that need manual attention (e.g., placeholder pages that need replacement content, generated files that need regeneration).
Rules
- Never delete files not listed in the manifest unless the user explicitly confirms.
- Never delete user-created files just because they contain words like "demo" or "example".
- Always present the plan first — no edits before confirmation.
- Respect the
reviewaction — ask the user before removing items markedreviewin the manifest (e.g., AsyncJob infrastructure, example CLI/MCP code). - Placeholder pages are
replace, notdelete— the root URL must resolve. Tell the user to provide replacement content. - Test dependencies must be migrated first — do not delete the Product API if pagination/throttle/request-ID tests still depend on it without providing a migration path.
- Database-aware — if an existing DB is detected, include migration commands in the plan and warn about data loss.
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.

