advpl-specialist: Command for Claude Code

.cursor/commands/docs.md

docs is a command for Claude Code, Cursor from thalysjuvenal/advpl-specialist. It costs 0 tokens per session (549 once invoked), scanned A, original, MIT.

A documentation lookup command for TOTVS Protheus, an enterprise software platform, and its ADVPL/TLPP programming languages. It searches references for functions, data-dictionary entries, REST APIs, and MV_ configuration parameters.

In plain words
What is it for?
Use it to check native functions, SX dictionary tables and fields, REST API details, or MV_ parameter definitions.
Why use it?
It reduces the need to search scattered Protheus references while writing or debugging code and configuration.

Command for Claude CodeCursor

Written for Claude Code and Cursor: shipped in a Claude Code plugin, but also installed under .cursor/.

This is thalysjuvenal/advpl-specialist's own configuration. It tells Claude Code and Cursor how to work on advpl-specialist itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything advpl-specialist configures →

Part of the advpl-specialist plugin — 18 skills, 14 commands, 2 hooks shipped together

Reuse

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.

Copy the file
curl -O https://raw.githubusercontent.com/thalysjuvenal/advpl-specialist/main/.cursor/commands/docs.md
Clone the repo
git clone --depth 1 https://github.com/thalysjuvenal/advpl-specialist

Made for: Claude Code, Cursor.

Or install advpl-specialist, the plugin that ships this one along with the rest of its 18 skills, 14 commands, 2 hooks.

Wrote 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.

agentmods badge for docs

README.md
[![agentmods](https://agentmods.dev/badge/commands/thalysjuvenal/advpl-specialist/docs.svg)](https://agentmods.dev/commands/thalysjuvenal/advpl-specialist/docs)
Your own site
<a href="https://agentmods.dev/commands/thalysjuvenal/advpl-specialist/docs"><img src="https://agentmods.dev/badge/commands/thalysjuvenal/advpl-specialist/docs.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 549 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.00549
Opus 5 $0.00000 $0.00275
Sonnet 5 $0.00000 $0.00110
Haiku 4.5 $0.00000 $0.00055

Measured 7d ago against content hash 133ff15da653, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

docs 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 7d 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.

.cursor/commands/docs.md · 31 lines

How it starts

The opening of the file, as written. The whole thing — 31 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/docs — Look up Protheus documentation for native functions, SX data dictionary, REST APIs, and MV parameters

You are an expert ADVPL/TLPP assistant for TOTVS Protheus. This command looks up documentation for Protheus functions, APIs, tables, and parameters.

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, based on the detected --type:

Type Reference file(s)
function skills/protheus-reference/reference.md, skills/protheus-reference/native-functions.md, skills/protheus-reference/restricted-functions.md
sx skills/protheus-reference/sx-dictionary.md, skills/protheus-reference/sx3-common-fields.md
api skills/protheus-reference/rest-api-reference.md
param (MV_*) skills/protheus-reference/reference.md

If the term is not found locally, or --source tdn is requested, apply the lookup strategy in skills/tdn-lookup/reference.md.

Workflow

  1. Parse the search term and options.
  2. Auto-detect --type if not specified: term starting with SX/SIsx; starting with MV_param; containing API/RESTapi; otherwise → function.
  3. Search the local reference files matching the detected type.
  4. If not found locally (or --source tdn), search TDN using the strategy from skills/tdn-lookup/reference.md.
  5. Present results in the appropriate format (see Output rules).

Output rules

  • For functions: syntax with parameter types, a parameter table (name, type, description, required), return type, a code example, and related functions.
  • For SX tables: table purpose, key fields with type/description, and how to access them programmatically.
  • For MV parameters: purpose, default value, how to read it (GetMV/SuperGetMV/GetNewPar), and the module that uses it.
  • For REST APIs: endpoint pattern, HTTP methods, request/response format, authentication requirements.
  • Always cite whether the answer came from the local reference or from TDN.
  • Compilation must be validated in TDS / VS Code TOTVS extension — never claim the code compiles.

Read the full file on GitHub · 31 lines

Changes

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.

  1. 7d ago First seen · 31 lines · 0 tokens per session scan A 133ff15da653

Subscribe to this mod's changes

docs is a command published in the GitHub repository thalysjuvenal/advpl-specialist (186 stars, last pushed 16d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 549 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.