Add AI documentation skills
This commit is contained in:
38
.ai/skills/cmba-historical-bylaws/SKILL.md
Normal file
38
.ai/skills/cmba-historical-bylaws/SKILL.md
Normal file
@@ -0,0 +1,38 @@
|
||||
---
|
||||
name: cmba-historical-bylaws
|
||||
description: Use when answering questions about historical CMBA constitution/bylaws text from this repository's git history. This skill restricts references to the approved historical sources only: the initial commit containing the 2016 constitution/bylaws content, plus the tagged releases 2022-01-09, 2023, and 2024. Do not use newer draft, rc, test, or other tags as authority.
|
||||
---
|
||||
|
||||
# CMBA Historical Bylaws
|
||||
|
||||
Use this skill when the user asks what the CMBA rules/bylaws said in a prior year, how language changed over time, or to quote or compare historical versions.
|
||||
|
||||
## Approved sources
|
||||
|
||||
Read [references/source-map.md](references/source-map.md) first. Treat its whitelist as authoritative.
|
||||
|
||||
Only use these git refs as historical authority:
|
||||
|
||||
- `1e16926c5f76989d8821dc3f2b0df0c1c500e8e9` for the imported 2016 constitution/bylaws text
|
||||
- `refs/tags/2022-01-09`
|
||||
- `refs/tags/2023`
|
||||
- `refs/tags/2024`
|
||||
|
||||
Do not cite or summarize newer tags such as `draft*`, `rc*`, `v2026*`, or similar release-prep tags.
|
||||
|
||||
## Workflow
|
||||
|
||||
1. Identify which approved version or comparison the user wants.
|
||||
2. Use the path listed in `references/source-map.md` for that ref.
|
||||
3. Prefer direct git reads over working tree files, for example:
|
||||
- `git show refs/tags/2024:src/cmba-bylaws.md`
|
||||
- `git show 1e16926c5f76989d8821dc3f2b0df0c1c500e8e9:content`
|
||||
4. When comparing versions, use `git diff --word-diff=color <old-ref> <new-ref> -- <path>` and adjust paths if the file moved between refs.
|
||||
5. In the answer, name the exact ref and the document path used.
|
||||
|
||||
## Guardrails
|
||||
|
||||
- Be explicit about dates and refs. The initial commit date is `2021-11-09`, but it imports the `2016` constitution/bylaws text.
|
||||
- If a user asks for "latest" historical bylaws, interpret that as the latest approved historical tag: `refs/tags/2024`.
|
||||
- If a request would rely on an unapproved newer tag, say that newer tags are drafts and are intentionally excluded from historical reference.
|
||||
- If wording differs because of formatting or conversion, say so rather than claiming a substantive rule change.
|
||||
48
.ai/skills/cmba-historical-bylaws/references/source-map.md
Normal file
48
.ai/skills/cmba-historical-bylaws/references/source-map.md
Normal file
@@ -0,0 +1,48 @@
|
||||
# Approved Historical Sources
|
||||
|
||||
Use only these refs when answering historical CMBA constitution/bylaws questions.
|
||||
|
||||
## Whitelist
|
||||
|
||||
- `1e16926c5f76989d8821dc3f2b0df0c1c500e8e9`
|
||||
- Commit date: `2021-11-09`
|
||||
- Commit subject: `initial commit, 2016 constitution and bylaws`
|
||||
- Historical meaning: imported 2016 constitution/bylaws text
|
||||
- Content path: `content`
|
||||
- `refs/tags/2022-01-09`
|
||||
- Content path: `src/cmba-bylaws.md`
|
||||
- `refs/tags/2023`
|
||||
- Content path: `src/cmba-bylaws.md`
|
||||
- `refs/tags/2024`
|
||||
- Content path: `src/cmba-bylaws.md`
|
||||
|
||||
## Non-authoritative refs
|
||||
|
||||
Do not use these as historical authority:
|
||||
|
||||
- `draft*`
|
||||
- `rc*`
|
||||
- `v2026*`
|
||||
- `v2024`
|
||||
|
||||
If a user asks about one of those refs, explain that they are draft or test-era refs and not approved for historical citation.
|
||||
|
||||
## Useful commands
|
||||
|
||||
Read a full version:
|
||||
|
||||
```bash
|
||||
git show refs/tags/2024:src/cmba-bylaws.md
|
||||
git show refs/tags/2023:src/cmba-bylaws.md
|
||||
git show refs/tags/2022-01-09:src/cmba-bylaws.md
|
||||
git show 1e16926c5f76989d8821dc3f2b0df0c1c500e8e9:content
|
||||
```
|
||||
|
||||
Compare approved versions:
|
||||
|
||||
```bash
|
||||
git diff --word-diff=color refs/tags/2023 refs/tags/2024 -- src/cmba-bylaws.md
|
||||
git diff --word-diff=color refs/tags/2022-01-09 refs/tags/2023 -- src/cmba-bylaws.md
|
||||
```
|
||||
|
||||
When comparing the imported 2016 text to later tagged versions, diff the extracted file contents rather than assuming the path is the same across refs.
|
||||
Reference in New Issue
Block a user