About tdn-lookup
A search-strategy skill for locating official TOTVS documentation on TDN when local references are incomplete. It guides developers through a tiered fallback from cached material to API, browser, and manual site searches.
Key features
- 01Local cache first
- 02Confluence REST API search
- 03Playwright API fallback
- 04Web search and navigation
- 05Manual TDN search
Use cases
- 01Finding undocumented native functions or errors
- 02Looking up official TOTVS documentation
- 03Escalating when local references are incomplete
Install
Copy the command and run it in a terminal.
npx skills add https:/ / github.com/ thalysjuvenal/ advpl-specialist --skill tdn-lookupAfter installing, type/tdn-lookupin Claude Code to confirm it loaded.
Bundled filesreference.md
Details
From the project READMETDN Lookup — Online Search Strategy
This skill defines the standardized fallback strategy for finding official TOTVS documentation on TDN (tdn.totvs.com, a public Confluence Data Center 7.19 site with an unauthenticated REST API) whenever local reference material is insufficient. It specifies a five-tier escalation: Tier 1 always checks the relevant local cache file first (native functions, SX dictionary, common errors, entry points, business modules); Tier 2 queries the Confluence REST search API directly via WebFetch with a CQL query; Tier 3 falls back to Playwright hitting the same API when WebFetch is blocked; Tier 4 uses WebSearch plus Playwright navigation when CQL search yields nothing; Tier 5 is a last-resort manual/visual search on the TDN site itself.
Activate this skill whenever a native function, entry point, error code, or business process is not found (or only partially found) in the local reference files, or whenever the user explicitly asks for official TOTVS documentation. It does not itself contain domain knowledge -- it only orchestrates the search process; the actual native function, entry point, and error catalogs live in protheus-reference, advpl-code-generation, advpl-debugging, and protheus-business.
| Reference file | Read when |
|---|---|
| reference.md | Always -- tier-by-tier search strategy, CQL query construction, HTML/JSON parsing steps, fallback conditions per tier |