Skip to content

feat: add AI agent skills suite - #304

Merged
Ruari-Phipps merged 1 commit into
mainfrom
feat/ai-agent-skills
Sep 10, 2026
Merged

feat: add AI agent skills suite#304
Ruari-Phipps merged 1 commit into
mainfrom
feat/ai-agent-skills

Conversation

@Ruari-Phipps

@Ruari-Phipps Ruari-Phipps commented Sep 2, 2026

Copy link
Copy Markdown
Collaborator

Summary

Adds a skills/ directory with five agent skills that teach AI coding agents (Claude Code, Cursor, Codex, etc.) the poly CLI workflow, plus a README describing the suite. Installable via npx skills add.

First PR of a three-part stack: #305 adds poly setup, which installs these skills, and #303 makes poly update keep them current.

Motivation

AI coding agents working on ADK projects currently have no contextual knowledge of the poly workflow — resource schemas, the no-main rule, pushed-state testing semantics, or conflict resolution. These skills provide that context on demand, structured after Google's agents-cli skills suite: a workflow entrypoint plus task-specific skills that load only when relevant.

Changes

  • skills/poly-adk-workflow/SKILL.md — entrypoint: install/update, auth, poly docs habit, resource-choice guidance, project structure, the core edit → validate → push → test → merge loop, and a routing table to the task skills
  • skills/poly-adk-testing/SKILL.mdpoly validate, scripted poly chat, test_suite/ authoring with api_mocks, poly functions execute/validate
  • skills/poly-adk-branching/SKILL.md — branch semantics, three-way merge model, conflict markers, non-interactive merge --resolutions, review gists
  • skills/poly-adk-conversations/SKILL.mdpoly conversations, instrumenting with conv.log and metrics, real-call → test-case loop
  • skills/poly-adk-rtc/SKILL.md — RTC pull/push cycle, drift protection, live-environment safety
  • skills/README.md — suite overview and install instructions

Resource schemas are deliberately not duplicated — skills instruct agents to run poly docs, which ships schemas with the installed CLI. Skill metadata.version is pinned to the current release (0.53.1).

Test strategy

  • Added/updated unit tests
  • Manual CLI testing (poly <command>)
  • Tested against a live Agent Studio project
  • N/A (docs, config, or trivial change)

Markdown-only change. Skills were installed locally via npx skills add (frontmatter validated by the tool) and exercised in Claude Code sessions against a real project. All CLI commands and flags referenced were cross-checked against docs/ and, where relevant, the source.

Checklist

  • ruff check . and ruff format --check . pass
  • pytest passes
  • No breaking changes to the poly CLI interface (or migration path documented)
  • Commit messages follow conventional commits

Screenshots / Logs

N/A

🤖 Generated with Claude Code

Five skills teaching AI coding agents (Claude Code, Cursor, Codex) the
poly CLI workflow, structured against google/agents-cli conventions:

- poly-adk-workflow: entrypoint - setup, core loop, invariants, routing
- poly-adk-testing: validate, scripted chat, test_suite, functions execute
- poly-adk-branching: merge model, conflict resolution, review gists
- poly-adk-conversations: real-call inspection, logging/metrics
- poly-adk-rtc: RTC cycle, drift protection, live-push safety

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

@jamesosullivan-polyai jamesosullivan-polyai left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved — docs-only PR, well-scoped, PR template fully filled in. Minor non-blocking note: the skill metadata version pin is already a couple of patch releases behind main; worth bumping at merge time or deferring the version stamp to whichever of #305/#303 wires up install/update.

@linear-code

linear-code Bot commented Sep 9, 2026

Copy link
Copy Markdown

DEVP-584

@Ruari-Phipps
Ruari-Phipps merged commit 1ae9187 into main Sep 10, 2026
5 checks passed
@Ruari-Phipps
Ruari-Phipps deleted the feat/ai-agent-skills branch September 10, 2026 10:03
Ruari-Phipps added a commit that referenced this pull request Sep 10, 2026
## Summary

Adds `poly setup` — a single onboarding command covering authentication,
shell completion, AI agent skill installation, and project setup — and
removes `poly start`, which it supersedes. Second PR of the stack:
stacked on #304 (the skills it installs), and the base for #303, which
makes `poly update` keep them current.

## Motivation

Onboarding currently spans several commands users must discover one by
one (`poly login`, `poly completion`, `poly project create`), and the
new agent skills had no installation path. `poly setup` runs all of it
in one command, skipping any step that is already done, so it doubles as
a repair command. `poly start` covered a subset of this (auth + project,
hardcoded to the `studio` region) and is not referenced in published
material, so it is removed rather than left as a second entry point.

## Changes

- New `poly setup` command with `--region`, `--base-path`,
`--skip-auth`, `--skip-skills`, `--agent` (repeatable), `--dev`, and
`--global/-g` flags
- New `cli_commands/skills.py`: wrapper around the pinned `npx skills`
package with a Node.js 18+ gate; skill installation is non-fatal — a
missing Node warns and setup continues
- `poly login` (and setup) now wait up to 20s for a newly created API
key to become active before returning
- Region selection extracted to a shared picker; `poly start`'s four
hardcoded `studio` call sites removed along the way
- `poly start` removed from the CLI, docs, and nav
- Docs: new `setup` reference page; getting-started restructured to
"install, then `poly setup`"; tooling page now leads with skill
installation via setup
- `poly-adk-workflow` skill updated to mention `poly setup` for fresh
machines
- Root README quickstart updated from `poly start` to `poly setup`

## Test strategy

- [x] Added/updated unit tests
- [x] Manual CLI testing (`poly <command>`)
- [ ] Tested against a live Agent Studio project
- [ ] N/A (docs, config, or trivial change)

60 new tests (node gate, npx argument construction and non-raising
failures, per-step skip logic, real rc-file completion installs in
throwaway home directories — set via both HOME and USERPROFILE so they
are hermetic on Windows — region threading, and activation-poll
behavior). Manually verified end-to-end with an isolated `$HOME`:
completion install + idempotent re-run, `--dev -g --agent claude-code`
installing all five skills via npx, graceful skip without a TTY, and
`poly start` now reporting an invalid choice.

## Checklist

- [x] `ruff check .` and `ruff format --check .` pass
- [x] `pytest` passes
- [x] No breaking changes to the `poly` CLI interface (or migration path
documented) — `poly start` is intentionally removed; `poly setup` /
`poly login` are the migration path
- [x] Commit messages follow [conventional
commits](https://www.conventionalcommits.org/)

## Screenshots / Logs

N/A
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