Skip to content

Commit 09c0da4

Browse files
authored
Merge pull request #7 from APIOpsCycles/create-apiops-draft
Create apiops scaffolding and skills
2 parents 1b367be + 752ac11 commit 09c0da4

39 files changed

Lines changed: 2925 additions & 20 deletions

.changeset/config.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"$schema": "https://unpkg.com/@changesets/config@3.0.4/schema.json",
3+
"changelog": "@changesets/cli/changelog",
4+
"commit": false,
5+
"fixed": [],
6+
"linked": [],
7+
"access": "public",
8+
"baseBranch": "main",
9+
"updateInternalDependencies": "patch",
10+
"ignore": []
11+
}
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Release create-apiops
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
workflow_dispatch:
8+
9+
permissions:
10+
contents: write
11+
pull-requests: write
12+
13+
jobs:
14+
release:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout repository
18+
uses: actions/checkout@v4
19+
with:
20+
fetch-depth: 0
21+
22+
- name: Setup Node.js
23+
uses: actions/setup-node@v4
24+
with:
25+
node-version: 22
26+
registry-url: https://registry.npmjs.org
27+
cache: npm
28+
29+
- name: Install dependencies
30+
run: npm ci
31+
32+
- name: Inspect root package contents
33+
run: npm run check:package:contents
34+
35+
- name: Run create-apiops scaffold integration test
36+
run: npm run test:create-apiops
37+
38+
- name: Version and publish create-apiops
39+
uses: changesets/action@v1
40+
with:
41+
version: npx changeset version
42+
commit: "chore(release): version create-apiops"
43+
title: "chore(release): version create-apiops"
44+
createGithubReleases: true
45+
publish: npm publish --workspace packages/create-apiops --access public
46+
env:
47+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
48+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
node_modules
2+
.npm-pack-cache/
23

34
# translation cache and temporary translation folder
45
.json-autotranslate-cache
5-
src/data/locales/
6+
src/data/locales/

AGENTS.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
## Skills
2+
A skill is a set of local instructions to follow that is stored in a `SKILL.md` file. Below is the list of skills that can be used. Each entry includes a name, description, and file path so you can open the source for full instructions when using a specific skill.
3+
4+
### Available skills
5+
- new-api-guide: Guide users through the APIOps Cycles method to design and scope a new API from business need to publishing and improvement. Use when the user needs help deciding the current station, checking whether entry or exit criteria are met, selecting the right next resource or canvas from the canonical method data, gathering answers for the selected canvas, or moving from method guidance into canvas JSON authoring and export without jumping too early into API design. (file: skills/new-api-guide/SKILL.md)
6+
- canvas-import-json-authoring: Create or review importable CanvasCreator JSON files using schema-first validation, template-specific section coverage, locale-aware section descriptions, and APIOps metadata defaults. Use when generating new filled canvas examples, converting raw notes into import JSON, or validating existing import files before import or export. (file: node_modules/canvascreator/.agents/skills/canvas-import-json-authoring/SKILL.md)
7+
- common-contributor-workflow: Follow the standard CanvasCreator contribution flow for scoping, implementation, validation, docs hygiene, and pull request preparation. Use when working on CanvasCreator package changes or package-bundled skill maintenance. (file: node_modules/canvascreator/.agents/skills/common-contributor-workflow/SKILL.md)
8+
- export-cli-usage-patterns: Create, review, or troubleshoot CanvasCreator export CLI usage for `scripts/export.js` and `canvascreator-export`, including argument patterns, output-file expectations, and format-specific behavior for `json`, `svg`, `pdf`, and `png` exports. (file: node_modules/canvascreator/.agents/skills/export-cli-usage-patterns/SKILL.md)
9+
10+
### How to use skills
11+
- Discovery: The list above is the skills available in this workspace (name + description + file path). Skill bodies live on disk at the listed paths.
12+
- Trigger rules: If the user names a skill with `$SkillName` or plain text, or the task clearly matches a skill's description shown above, use that skill for the turn.
13+
- Missing or blocked: If a named skill is not in the list or the path cannot be read, say so briefly and continue with the best fallback.
14+
- How to use a skill:
15+
1. Open its `SKILL.md`.
16+
2. Read only enough to follow the workflow.
17+
3. Resolve any relative paths from the skill directory first.
18+
4. Load only the specific reference files needed for the request.
19+
- Coordination and sequencing:
20+
1. Use `new-api-guide` to select the correct station and canvas.
21+
2. Use `canvas-import-json-authoring` to create or validate importable canvas JSON.
22+
3. Use `export-cli-usage-patterns` to export or troubleshoot exported artifacts.
23+
- Context hygiene: Keep context small and avoid loading unnecessary reference material.

README.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ The module exposes top-level exports so you can import the data files directly,
2828

2929
```js
3030
import stations from "apiops-cycles-method-data/method/stations.json";
31-
import canvasData from "apiops-cycles-method-data/canvasData";
31+
import canvasData from "apiops-cycles-method-data/canvasData.json";
3232
```
3333

3434
Validate the files locally with:
@@ -46,6 +46,16 @@ Install dependencies once with:
4646
npm install
4747
```
4848

49+
## Create a new APIOps project (CLI)
50+
51+
Once `create-apiops` is published to npm, you can scaffold a new project with:
52+
53+
```bash
54+
npm create apiops@latest
55+
```
56+
57+
This command runs the `create-apiops` initializer package and generates a starter APIOps project template in your current directory.
58+
4959
## Contributing
5060

5161
### Reporting issues or requesting features

0 commit comments

Comments
 (0)