Skip to content

fix(skill): correct and slim the bundled skills; add plivo-first-agent - #107

Merged
Priyanshu (priyanshu-plivo) merged 19 commits into
mainfrom
fix/bundled-skills
Oct 1, 2026
Merged

Priyanshu (priyanshu-plivo) merged 19 commits into
mainfrom
fix/bundled-skills

Conversation

@priyanshu-plivo

@priyanshu-plivo Priyanshu (priyanshu-plivo) commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

Carries #103 forward (its commits are kept as authored) plus a rewrite that makes the bundled skills much smaller, and fixes the review findings on #103. Supersedes #103 and #96.

  • Frontmatter: every skill now has valid YAML. Strict loaders such as npx skills found only 3 of the 6 skills on main; they find all of them now, and a test checks every bundled skill's frontmatter.
  • New skill: plivo skill install first-agent guides a new user to a first AI voice agent on a real call. It requires CLI v1.1.3 or later, which is the first release whose voice streams forward can carry a call.
  • Smaller skills: skill bodies drop from about 84.6k to 33.0k tokens including the new skill (the four existing skills drop 69%). Descriptions loaded into every session drop from about 770 to about 486 tokens. Long reference tables now point at the docs page with the same data (plivo docs show <path>, each checked against the page), and repeated or time-sensitive text is gone.
  • Safety and correctness: warnings are back before commands that reroute a live number, delete a URI or trunk, or update a live trunk. Also fixed: the list of commands that ignore --dry-run, the stream-watch filter that hid failed streams, the Dial callback fields, the first-agent test loop (restart after .env edits, never overwrite a filled .env), and a warning before publishing an unauthenticated bot.

Testing: go test -race ./... (including the strict frontmatter test), golangci-lint (0 issues), go vet (also -tags internal), Windows / Linux arm64 / -tags internal builds, make docs drift, go mod tidy -diff and scripts/smoke.sh pass. Each slimmed skill was also handed to a fresh agent with no other context and four real tasks (preview-only CLI use, XML writing, docs lookups, safety calls): 16 of 16 tasks succeeded, and the gaps they reported are fixed here.

Size

Added lines by type, blank lines excluded. Comments counts comment lines in non-test code.

Code Tests Comments Docs and config
13 55 9 884

Removed: 2,725 lines. Tests include 3 comment lines.

…ables at the docs, restore write-safety notes

- Cut the skill from 666 to 208 lines (~21k to ~6.5k tokens): one platform
  matrix instead of four, one hangup table with the top codes, and no
  per-platform command blocks or plivo sip reference table.
- Point the full hangup table, SIP REFER details, geo permissions, account
  limits, STIR/SHAKEN, signaling ranges and India KYC/regulations at the
  docs pages that carry them (each resolved with plivo docs show).
- Drop dated facts (limit tiers, the account-creation cutoff, the diagnose
  server-side status, CIDR lists, Vapi IPs) in favor of those pages.
- Restore write-safety notes: numbers update reroutes a live number with no
  --yes gate, record the binding first; deletes cascade and the preview omits
  numbers; updates to live trunks and URIs land immediately; the secure flag
  check and inbound-only readiness steps; list paging.
- Rewrite the description in third person, under 400 characters.
Drop the flag tables and restated rules that copied `plivo <cmd> --help`.
Keep one rules block, the command map, the behaviour help does not show,
and a single known-issues note for `voice streams forward`.

List every command that ignores --dry-run and acts for real (login,
logout, auth use/remove, config set/telemetry, feedback, upgrade, voice
streams test), and note that `voice multiparty create` is retired. The
README no longer describes a flag table.
…lements at the docs

- Cut the body from ~21k to ~6k tokens: drop restated attribute tables,
  duplicated code tables, the 8011 shape catalogue and 10 of 13 patterns.
- Keep GetDigits, GetInput and Dial inline; point Conference,
  MultiPartyCall, Wait, PreAnswer, DTMF and Message at their docs pages.
- Add a validate, fix, repeat loop (xmllint, POST probe, dry-run call).
- Settle Conference stayAlone, list fallback timing under docs
  disagreements, fix the Conference link, keep a non-table Speak
  language as untested.
- Shorten the description to 393 characters.
…ence tables at the docs

Cut the skill from 1,068 to 356 lines (about 36k to 11k tokens). The five
gates, six checklist steps and eight stages are now one eight-stage flow;
duplicated rules are stated once; the India deep dive, second hangup
tables, callback and signature recipe, URL fragments, outbound and
MultiPartyCall material are replaced by `plivo docs show` pointers whose
pages were checked for the removed facts.

Corrections: stage 8 no longer filters out 4010 and uses the API's
20-per-page maximum; the Dial action URL does not receive the B-leg
hangup fields; `streams test --bidirectional` sends no stop or close
frame; organisations are switched with `plivo login` and `plivo auth use`;
contentType and keepCallAlive verdicts are consistent; one precedence
rule for `--help`. The v1.1.x `streams forward` limitation and the
`docs show` page truncation are listed under Known issues.
@priyanshu-plivo
Priyanshu (priyanshu-plivo) merged commit 3f9fbf6 into main Oct 1, 2026
15 of 16 checks passed
@priyanshu-plivo
Priyanshu (priyanshu-plivo) deleted the fix/bundled-skills branch October 1, 2026 08:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants