Borrowing it
Nothing to install: this file belongs to thalysjuvenal/advpl-specialist. 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/thalysjuvenal/advpl-specialist/main/.cursor/commands/migrate.mdgit clone --depth 1 https://github.com/thalysjuvenal/advpl-specialistWrote 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/thalysjuvenal/advpl-specialist/migrate)<a href="https://agentmods.dev/commands/thalysjuvenal/advpl-specialist/migrate"><img src="https://agentmods.dev/badge/commands/thalysjuvenal/advpl-specialist/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/thalysjuvenal/advpl-specialist/migrate"><img src="https://agentmods.dev/badge/commands/thalysjuvenal/advpl-specialist/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.00000 | $0.00630 |
| Opus 5 | $0.00000 | $0.00315 |
| Sonnet 5 | $0.00000 | $0.00126 |
| Haiku 4.5 | $0.00000 | $0.00063 |
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 9d 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.
How it starts
The opening of the file, as written. The whole thing — 30 lines — stays where its author put it; the contents beside it link to each section on GitHub.
/migrate — Migrate procedural ADVPL code to object-oriented TLPP with classes, namespaces, and modern patterns
You are an expert ADVPL/TLPP assistant for TOTVS Protheus. This command converts procedural ADVPL source into TLPP object-oriented code.
Knowledge to load first
Locate the advpl-specialist skills (installed via npx skills add thalysjuvenal/advpl-specialist; in this repository they live under skills/) and read, in order:
skills/advpl-to-tlpp-migration/reference.md(migration rules and process)skills/advpl-to-tlpp-migration/migration-rules.mdskills/advpl-to-tlpp-migration/migration-checklist.md(final validation checklist)
Workflow
- Read the target
.prwfile completely. - Analyze its structure: functions, dependencies, shared/private/public variables.
- Search the codebase for external callers (
u_FunctionNamereferences) that may be impacted. - Design a target class structure: map each function to a class method (public or private), map shared variables to class properties, and decide the namespace (auto-detected from the module, or
--namespaceoverride). - Draft a migration plan including: source analysis summary, external callers impacted, target class/namespace, function-to-method mapping, includes to update (e.g.
TOTVS.CHtotlpp-core.th), whether a backward-compatibility.prwwrapper is needed, and any risks or breaking changes. Present the plan and wait for user approval. - If
--dry-runwas requested, stop after presenting the plan — do not generate files. - After approval, generate the
.tlppfile with the migrated class-based code, and the compatibility wrapper if--wrapperis enabled (default true). - Run the migration against
skills/advpl-to-tlpp-migration/migration-checklist.mdand report any gaps. - Report a summary of what changed and why.
Output rules
- Target files use
.tlppextension with#include "tlpp-core.th"(andtlpp-rest.thif REST is involved). - Declare
namespace custom.<agrupador>.<servico>right after the includes (all lowercase, dot-separated, no underscores). - Preserve Hungarian notation for variables; convert module-global state into class properties where appropriate.
- Use Embedded SQL (
BeginSQL/EndSQLwith macros) if the original code used raw or dynamic SQL strings — never keep raw SQL strings. - Keep error handling (
BEGIN SEQUENCE ... RECOVER ... END SEQUENCE) equivalent or improved relative to the original. - Validate any custom field (
<prefix>_X*) against SX3 conventions; user-facing functions keep theU_prefix in the compatibility wrapper. - Compilation must be validated in TDS / VS Code TOTVS extension — never claim the code compiles.
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.
- 9d ago First seen · 30 lines · 0 tokens per session scan A 4b52c1cf11a0
migrate is a command published in the GitHub repository thalysjuvenal/advpl-specialist (186 stars, last pushed 18d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 630 tokens. 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-30.
Other commands, from other repositories
fastapi
FastAPI application design and implementation conventions. Use this skill when building, updating, or reviewing FastAPI services, routers, dependencies, request/response schemas, streaming endpoints, or API tests. Trigger on FastAPI-specific work such as path operation design, dependency injection, response models…
azure-graph-dotnet:deploy-azure
Deploy a C# Azure Functions or Container Job project to Azure — provision infrastructure with Bicep, push image to ACR, assign Managed Identity Graph permissions, and generate or update GitHub Actions or Azure DevOps CI/CD pipelines.
go-review
Go code review for idiomatic patterns.
kotlin-review
Comprehensive Kotlin code review for idiomatic patterns, null safety, coroutine safety, and security. Invokes the kotlin-reviewer agent.
kimi-setup
Run node "$HOME/.kimi-plugin/kimi-companion.mjs" setup, then report installation and authentication status.
savant-python
Python performance optimization with Python Developer agent.