Skip to content

Commit 9bad247

Browse files
committed
Limit CI to docs checks
1 parent 78f00ed commit 9bad247

2 files changed

Lines changed: 15 additions & 9 deletions

File tree

.github/workflows/ci.yml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: ci
1+
name: docs
22

33
on:
44
push:
@@ -9,11 +9,17 @@ permissions:
99
contents: read
1010

1111
jobs:
12-
lint:
12+
docs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- uses: actions/checkout@v4
16-
- name: shellcheck
17-
run: shellcheck skills.sh
18-
- name: skill frontmatter present
19-
run: head -1 SKILL.md | grep -qx -- '---'
16+
- name: SKILL.md frontmatter is valid
17+
run: |
18+
head -1 SKILL.md | grep -qx -- '---'
19+
grep -qx 'name: code-max' SKILL.md
20+
grep -q '^description: Use when ' SKILL.md
21+
- name: README and AGENTS links resolve
22+
run: |
23+
grep -ohE '\]\(([^)#:]+)\)' README.md AGENTS.md | sed -E 's/^\]\(|\)$//g' | sort -u | while read -r f; do
24+
test -e "$f" || { echo "broken link: $f"; exit 1; }
25+
done

AGENTS.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ This repository *is* an agent skill. The skill body lives in `SKILL.md` — read
2222
## Verifying
2323

2424
```bash
25-
shellcheck skills.sh # lint
25+
shellcheck skills.sh # lint (local only, not in CI)
2626
head -1 SKILL.md # must be ---
2727
./skills.sh # idempotent; re-running must not break existing symlinks
2828
```
2929

30-
CI (`.github/workflows/ci.yml`) runs the first two on every push and pull request.
30+
CI (`.github/workflows/ci.yml`) checks the docs only: `SKILL.md` frontmatter and that links in `README.md` / `AGENTS.md` resolve. There are no test suites here — keep it that way.
3131

3232
## Contributing flow
3333

34-
`main` is protected: force-pushes and deletions are blocked, history is linear, and CI must pass. Work on a branch, open a PR, let `ci / lint` go green, then squash-merge.
34+
`main` is protected: force-pushes and deletions are blocked, history is linear, and CI must pass. Work on a branch, open a PR, let `docs` go green, then squash-merge.

0 commit comments

Comments
 (0)