Vibe kanban brainstorming

From ippontech/terraform-provider-anthropic · View interactive version

Vibe kanban brainstorming is an AI agent skill from the GitHub repository ippontech/terraform-provider-anthropic. Plans and scaffolds Anthropic API endpoints as Terraform resources/data sources for Vibe Kanban. TRIGGER when: user says "implement GitHub issues", references a range of GitHub issues to implement (e.g. "issues 52 to 57"), asks to parallelize implementation of multiple resources/data sources, or say

How to use this skill

Skill file

vibe-kanban-brainstorming

Concepts

Workflow

Step 1 — Discover the API

Fetch https://platform.claude.com/docs/en/api/overview and all relevant endpoint pages in parallel. Collect HTTP method, path, request/response fields.

Endpoint → Terraform mapping:

Step 2 — Create Vibe Kanban issues

One mcp__vibe_kanban__create_issue per resource/data source plus one orchestration issue, all in a single parallel message.

All issues must be top-level: never set parent_issue_id.

Priorities: orchestration high, resources high, data sources medium.

Orchestration issue body:

Track parallel implementation of <API name> resources and data sources.

## Workspaces to monitor
- [ ] <Issue title A>
- [ ] <Issue title B>

## Agent instructions
Do NOT write code. Your job:
1. Create a workspace for each implementation issue above (the human has only created yours).
2. Monitor sibling workspaces; report progress and flag inconsistencies.
3. Close this issue once all sibling PRs are merged.

Implementation issue body: use the template at the bottom of this file.

Step 3 — Create issue relationships

Call mcp__vibe_kanban__create_issue_relationship for all pairs in a single parallel message:

Step 4 — Create GitHub issues

First check for existing issues to avoid duplicates:

gh issue list --search "<resource name>" --json number,title,url

For each implementation issue only (orchestration has no GitHub issue), create via gh CLI in a single parallel message:

gh issue create --title "<title>" --body "<body>"

Do not create feat/ branches here — the agent's /ship skill creates the branch automatically when it opens a PR.

Step 5 — Cross-link

Update all Vibe Kanban issues in a single parallel message:

Step 6 — Create implementation workspaces

Call mcp__vibe_kanban__start_workspace for every implementation issue in a single parallel message. Always pass "branch": "main" — vibe-kanban auto-generates a vk/ branch internally.

mcp__vibe_kanban__start_workspace({
  name: "<resource-or-datasource-name>",
  executor: "CLAUDE_CODE",
  issue_id: "<vk-issue-id>",
  repositories: [{"repo_id": "<repo-id>", "branch": "main"}]
})

After all calls return a workspace_id, call mcp__vibe_kanban__list_sessions for each workspace to retrieve the session ID.

If any start_workspace call returns an error: do not call run_session_prompt for that workspace — delete it and recreate it before proceeding.

Step 7 — Fire implementation prompts

Call mcp__vibe_kanban__run_session_prompt for all sessions in a single parallel message. Each prompt must include the /terraform-provider skill invocation followed by the full spec (API endpoints, SDK methods, Terraform schema, files to create).

Step 8 — Inform the user

Report a summary table of issues, GitHub issue URLs, and workspace IDs. Remind: "Each agent will open a draft PR via /ship when it's ready."

Invariants

Implementation issue template

GitHub Issue: <url>

<One-line summary.>

## API
- `METHOD /v1/<path>` — description

## SDK methods
- `client.<Service>.<Method>(ctx, params)` → `ResponseType`

## Terraform schema
| Attribute | Type | R/W |
|---|---|---|
| `id` | string | Computed |

## Files to create / modify
From `CLAUDE.md`, *Adding a resource or data source* (for a data source: `_data_source.go`, `dataSourceRegistrations()`, `examples/data-sources/<name>/data_source.tf`, `templates/data-sources/`, `docs/data-sources/`).
- `internal/services/<service>/<name>_resource.go`: `package <service>`
- `internal/services/<service>/<name>_resource_test.go`: Go acceptance tests, `package <service>_test` (standard-key objects and read-only Admin API data sources, see *Go tests*)
- `internal/services/<service>/<name>_resource_internal_test.go`: unit tests against an `httptest` server, `package <service>`, when they need unexported symbols, and always for an Admin API or OAuth resource
- `internal/provider/registry.go`: register the factory in `resourceRegistrations()`, declaring whether each cloud platform serves it
- `examples/resources/<name>/resource.tf`: resource blocks and outputs only (embedded in the Registry docs)
- `examples/resources/<name>/versions.tf`: the `terraform {}` block
- `templates/resources/<name>.md.tmpl`: non-empty `subcategory: "<Category>"`
- `tests/<name>.tftest.hcl`: Terraform native test
- `docs/resources/<name>.md`: generated by `make generate`, never edited by hand

## Go tests
Which tests run live depends on the credential (`CLAUDE.md`, *Testing*):
- Standard key: `TestAcc<Name>Resource_basic` creates the object with a minimal config, checks `id` is set, then runs an `ImportState` step; a `CheckDestroy` function verifies the object is gone (or archived) after destroy; gated on `acctest.PreCheck`.
- Admin API or OAuth resource: no live create test, since there is no test organization yet (#58) and OAuth-gated tests are not run. `httptest` tests in `<name>_resource_internal_test.go` (`admintest.NewClient` / `oauthtest.NewClient`) cover create, read, update, delete, import and 404s, and the native test stays at `command = plan`.
- Read-only Admin API data source: a smoke acceptance test gated on `acctest.PreCheckAdmin` that reads `terraform-tests` and asserts presence (`<list>.#`), not values, next to the `httptest` tests.

## Terraform native test (`tests/<name>.tftest.hcl`)

test {

parallel = true

}

run "<name>_resource_creates_<name>" {

module {

source = "../examples/resources/<name>"

}

assert {

condition = output.<name>_id != ""

error_message = "Expected <name>_id to be non-empty."

}

}

Admin API and OAuth resources plan only (`command = plan`, dummy credential in a `provider "anthropic"` block of the test file) and assert on configured values, since computed ones such as `id` are unknown at plan; self-contained list data sources use `mock_provider "anthropic" {}`. Details in `CLAUDE.md`, *Terraform native tests*.

Run `make` after implementation, then `make terraform-test`, then stage the new files and run `pre-commit run -a` (it skips untracked files).

## Implementation
Conventions: `CLAUDE.md` and the `terraform-provider` skill. The `terraform-provider-implementer` agent can implement this issue.

Example

User: "I'd like to implement /v1/environments APIs"

  1. Fetch API docs in parallel → identify: anthropic_environment resource, anthropic_environment data source, anthropic_environments data source.
  2. Create 4 Kanban issues in parallel: 1 orchestration + 3 implementation.
  3. Create 5 relationships in parallel: 3× impl blocking orch, resource related single DS, single DS related list DS.
  4. Create 3 GitHub issues in parallel (implementation only; no branches).
  5. Update 4 Kanban issues with GitHub links in parallel.
  6. Start 3 workspaces in parallel; retrieve session IDs.
  7. Fire 3 implementation prompts in parallel.
  8. Report summary.
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.