Borrowing it
Nothing to install: this file belongs to Piyush8296/claude-workspace. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/Piyush8296/claude-workspace/main/.claude/commands/migrate.mdgit clone --depth 1 https://github.com/Piyush8296/claude-workspaceWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/commands/piyush8296/claude-workspace/migrate)<a href="https://agentmods.dev/commands/piyush8296/claude-workspace/migrate"><img src="https://agentmods.dev/badge/commands/piyush8296/claude-workspace/migrate/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/commands/piyush8296/claude-workspace/migrate"><img src="https://agentmods.dev/badge/commands/piyush8296/claude-workspace/migrate.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00010 | $0.00546 |
| Opus 5.5 | $0.00004 | $0.00218 |
| Sonnet 5.5 | $0.00002 | $0.00109 |
| Haiku 4.5 | $0.00001 | $0.00055 |
Grade A, and why
migrate scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
What it actually says
Migration Assistant
Migrate: $ARGUMENTS
Instructions
1. Assess scope
# Find all files using the old pattern
grep -rn "<old-pattern>" src/ --include='*.ts' --include='*.tsx' | wc -l
grep -rn "<old-pattern>" src/ --include='*.ts' --include='*.tsx' --files-with-matches
Report:
- Total occurrences
- Files affected
- Areas of the codebase impacted
2. Risk assessment
Classify risk:
- LOW: Internal utility, full test coverage, isolated
- MEDIUM: Shared component, partial tests, known consumers
- HIGH: Core abstraction, minimal tests, unknown dependents
3. Create migration plan
For each step:
- What changes
- How to verify it works
- How to rollback if needed
- Estimated scope (files/lines)
4. Execute incrementally
For each batch:
- Create a checkpoint:
git stashor commit - Apply changes to a small batch (5-10 files max)
- Run tests:
npx vitest run - Run type check:
npx tsc --noEmit - Commit if green:
git commit -m "refactor: migrate <batch> from <old> to <new>" - If red: diagnose, fix, or rollback
5. Cleanup
After all batches:
- Remove old pattern if fully migrated
- Update documentation
- Remove deprecated imports/exports
- Run full test suite
Common Migration Paths
| From | To | Strategy |
|---|---|---|
| Class components | Function + hooks | Wrap, convert, verify |
| Redux | Zustand | Create store alongside, migrate consumers |
| CSS/SCSS | Tailwind | Component by component, visual regression |
| REST | tRPC/GraphQL | Dual-write period, switch consumers |
| Jest | Vitest | Config swap, fix API differences |
| CRA | Vite/Next.js | New entry point, move routes incrementally |
| PropTypes | TypeScript | Add types alongside, remove PropTypes |
| Moment.js | date-fns | Function by function replacement |
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 1mo ago First seen · 71 lines · 10 tokens per session scan A daa40d26064d
migrate is a command published in the GitHub repository Piyush8296/claude-workspace (2 stars, last pushed 6mo ago), licensed MIT. It adds 10 tokens to every session and 546 once invoked, about $0.0000 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other commands, from other repositories
update-counts
Explicitly refresh public toolkit and committed marketplace source snapshots and numeric documentation.
watch
You are executing the /hydra:watch command. Live monitoring of all background agents with real-time status updates.
firebase-publish
Create or reuse a Firebase project, configure Hosting, and deploy the current static site. Never deletes.
gws-people
Search and look up Google Contacts and directory profiles.
kickoff
Default entry. Figure out what the user is prepping for, confirm Four-Leaf has data for it, route to the right command.
check
Run a quick scan of the memory system's health. For daily use.