add dolibarr api skills for read-only inspection #1
Reference in New Issue
Block a user
Delete Branch "claude/dolibarr-skill"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
First two of an expected family of
dolibarr-*Claude Code skills under.claude/skills/:dolibarr/— platform reference skill. DOLAPIKEY auth, the silentvoir_tousACL trap, endpoint catalogue,dol-curl.shwrapper,.envcredentials layout (mode 600, gitignored). Every future workflow skill will depend on this one.dolibarr-invoice-audit/— V1 workflow. Three scripts:list-km-invoices.sh,audit-invoice.sh <id>(JSON facts + PDF mandatory-mention checklist),audit-km-thirdparty.sh.Architecture decision: split now rather than grow a monolith. Future workflows follow
dolibarr-<topic>/and reuse the base skill's.env+dol-curl.sh..gitignorehardened with*.credentials,secrets/,*.key, and an explicit.claude/skills/**/.envpattern (defense-in-depth; the root.envrule already matches recursively).Live findings surfaced by the audit
Captured in
examples/as the V1 baseline:99965745500013, TVAFR00999657455, R.C.S. Évry, NAF-APE 6201Z, TVA 259-1° CGI (autoliquidation correctly declared).idprof1..6all empty → EIN missing, plus no phone / no URL.ai_agentpermission setup: thevoir_tousflags on Tiers and Factures had to be granted during this work (seedolibarr/README.mdstep 2). The exact 403 signature is preserved indolibarr/examples/acl_403_thirdparty.jsonso we don't fall into the same trap again.Out of scope here (V2 candidates)
dolibarr-payments-state— payment cross-reference, deferred-cycle trackingdolibarr-tva-reconciliation— monthly TVA declaration preparationdolibarr-recurring-templates— inspect theKiss Metrics Invoicerecurring templateTest plan
./.claude/skills/dolibarr/scripts/dol-curl.sh /users/info | jq -r .login→ai_agent./.claude/skills/dolibarr-invoice-audit/scripts/list-km-invoices.sh→ 5-row KM invoice table./.claude/skills/dolibarr-invoice-audit/scripts/audit-invoice.sh 12→ exits 1 with 6 pass / 4 fail (current baseline)./.claude/skills/dolibarr-invoice-audit/scripts/audit-km-thirdparty.sh→ exits 1 (EIN/phone/url missing)git check-ignore .claude/skills/dolibarr/.envreturns the path