@@ -48,7 +48,7 @@ task setup REPO=runwhen-contrib/rw-cli-codecollection PR=42
4848task setup REPO=runwhen-contrib/azure-c7n-codecollection BRANCH=feat/foo
4949```
5050
51- That clones the repo, installs Python deps, and checks out the PR branch if specified.
51+ That clones the repo, installs Python deps, installs authoring skills as Cursor rules, and checks out the PR branch if specified.
5252
5353### Option 2: VS Code devcontainer (local)
5454
@@ -94,7 +94,7 @@ docker run --rm -it \
9494| ` BRANCH ` | ` main ` | Branch to check out after cloning. |
9595| ` PR ` | * (none)* | If set, checks out the PR branch via ` gh pr checkout ` . |
9696
97- Other tasks: ` task verify ` (check tools), ` task clean ` (remove cloned codecollection).
97+ Other tasks: ` task verify ` (check tools), ` task install-skills ` (re-install skills), ` task clean` (remove cloned codecollection).
9898
9999## Environment variables
100100
@@ -148,6 +148,38 @@ Mount or copy credentials into the `auth/` directory:
148148
149149---
150150
151+ ## CodeBundle authoring skills
152+
153+ The ` skills/ ` directory contains platform-specific authoring guidance that is
154+ automatically installed as [ Cursor rules] ( https://docs.cursor.com/context/rules )
155+ during ` task setup ` . These give AI assistants (and human authors) context about
156+ generation rules, SLI patterns, and test infrastructure conventions.
157+
158+ | Skill | Covers |
159+ | -------| --------|
160+ | ` generation-rules-kubernetes.md ` | K8s resource types, match rules, qualifiers, templates |
161+ | ` generation-rules-aws.md ` | AWS resource types, CloudQuery tables, account qualifiers |
162+ | ` generation-rules-azure.md ` | Azure + Azure DevOps platforms, resource groups, subscriptions |
163+ | ` generation-rules-gcp.md ` | GCP resource types, project qualifiers |
164+ | ` sli-authoring.md ` | In-repo SLIs, cron-scheduler SLIs, scoring patterns |
165+ | ` test-infra-kubernetes.md ` | Static manifests, Terraform patterns, Taskfile contract |
166+ | ` test-infra-azure.md ` | Azure Terraform test infra, tf.secret, workspaceInfo |
167+ | ` test-infra-azure-devops.md ` | DevOps projects, pipelines, agent pools via Terraform |
168+ | ` test-infra-cloud.md ` | Shared conventions across all cloud platforms |
169+
170+ Skills are copied to ` {codecollection}/.cursor/rules/*.mdc ` at setup time. A
171+ ` .gitignore ` is placed in that directory to prevent accidental commits. To
172+ re-install after an update, run:
173+
174+ ``` bash
175+ task install-skills
176+ ```
177+
178+ These same skills are used by the [ CodeBundle Farm] ( https://github.com/runwhen/codebundle-farm )
179+ Creator agent. Changes should be synced between both repos.
180+
181+ ---
182+
151183## What's in the image
152184
153185| Category | Tools |
@@ -180,7 +212,11 @@ codecollection-devtools/
180212│ └── workflows/
181213│ ├── build-push.yaml # CI: multi-arch build → GHCR + GCP Artifact Registry
182214│ └── pypi.yaml # publish rw-devtools to PyPI (deprecated)
183- ├── Taskfile.yml # task setup, task verify, task clean
215+ ├── skills/ # CodeBundle authoring skills (installed as Cursor rules)
216+ │ ├── generation-rules-*.md # Platform-specific generation rule guides
217+ │ ├── sli-authoring.md # SLI design and implementation guide
218+ │ └── test-infra-*.md # Test infrastructure patterns per platform
219+ ├── Taskfile.yml # task setup, task verify, task install-skills, task clean
184220├── Dockerfile # image definition (built by CI, not locally)
185221├── ro # Robot Framework test runner wrapper
186222├── requirements.txt # base Python dependencies
@@ -215,7 +251,8 @@ devcontainer opens
215251 1. clones repo into /home/runwhen/codecollection/
216252 2. checks out PR branch (if PR set)
217253 3. pip installs codecollection's requirements.txt
218- 4. verifies tools (ro, robot, kubectl, gh, python)
254+ 4. installs skills/ as .cursor/rules/*.mdc
255+ 5. verifies tools (ro, robot, kubectl, gh, python)
219256 → ready to develop
220257```
221258
0 commit comments