Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
048dac7
Add the Cursor akb plugin and keep shared skill scripts LF.
Nov 17, 2026
f98e3d5
Adapt Cursor plugin defaults for ApolloTeam-dev upstream.
Nov 22, 2026
48511a5
Fix Cursor marketplace manifest schema compatibility
Nov 17, 2026
26995d6
Package the Cursor plugin as the akb directory.
Nov 18, 2026
d1ee494
Remove temporary conflict-resolution script from packaging commit.
Nov 22, 2026
65644d9
Keep generated SAGA HTML copies byte-identical to their CRLF originals.
Nov 18, 2026
100fee4
Regenerate akb/ package from ApolloTeam-dev-adapted sources.
Nov 22, 2026
31a51db
Fix generated Cursor package marker line endings
Nov 22, 2026
0537f73
Recommend only Make targets verified as non-uploading.
AmanitaHouse Nov 22, 2026
abdbb80
Report missing documented NDK dirs from the effective Makefile PREFIX.
Nov 22, 2026
a3fdbbd
Make guided language selection truthful about C++ and assembler limits.
Nov 22, 2026
6cf4f38
Align Apollo build compiler-fix guidance with documented evidence
Nov 22, 2026
a7984af
Add experimental os-friendly C++ project scaffolding.
Nov 22, 2026
4079131
Complete AttnFlags applicability for C++ starter, package mirrors and…
Nov 22, 2026
6101dfb
Validate compiler readiness for guided Apollo projects
Nov 22, 2026
00f2826
Preserve explicit Target OS and core in guided Apollo project setup.
Nov 22, 2026
1053c62
Correct Makefile and NDK path docs to match ApolloCrossDev revisions.
Nov 22, 2026
279c0dd
Preserve placeholder notation in blocked build-readiness guidance
Nov 24, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
16 changes: 16 additions & 0 deletions .cursor-plugin/marketplace.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"name": "apolloknowledgebase",
"owner": {
"name": "Apollo Team"
},
"metadata": {
"description": "ApolloKnowledgeBase for Cursor: the 68080, SAGA, ApolloOS, AmigaOS on V4, and ApolloCrossDev."
},
"plugins": [
{
"name": "akb",
"source": "akb",
"description": "Skills for Apollo V4 development: apollo-new-project, apollo-build, and akb-lesson."
}
]
}
11 changes: 11 additions & 0 deletions .cursor-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"name": "akb",
"version": "1.0.0",
"description": "Skills for Apollo V4 development with ApolloKnowledgeBase: apollo-new-project, apollo-build, and akb-lesson. The knowledge base ships with the plugin.",
"author": {
"name": "Apollo Team"
},
"homepage": "https://apolloknowledgebase.com",
"repository": "https://github.com/ApolloTeam-dev/ApolloKnowledgeBase",
"keywords": ["apollo", "vampire", "68080", "saga", "amiga", "apolloos"]
}
44 changes: 44 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# POSIX skill scripts must stay LF. A CR in the file is part of the command
# for /bin/sh, so core.autocrlf must not rewrite them on checkout.
*.sh text eol=lf

# Generated package marker must stay LF. tools/package_cursor_plugin.py
# compares it byte-for-byte to MARKER.encode("ascii").
akb/PACKAGE.txt text eol=lf

# akb/sources/official/ is a byte copy of the official originals. Those HTML
# files already contain trailing spaces. Do not rewrite the copies to satisfy
# a whitespace check. tools/package_cursor_plugin.py
akb/sources/official/** -whitespace

# These generated copies are stored with the same CRLF bytes as their
# canonical files. Git must not normalise them to LF.
akb/sources/official/saga-registers/audnvol.htm -text
akb/sources/official/saga-registers/audxvol.htm -text
akb/sources/official/saga-registers/beamcon0.htm -text
akb/sources/official/saga-registers/bltddat.htm -text
akb/sources/official/saga-registers/bplcon0.htm -text
akb/sources/official/saga-registers/bplcon1.htm -text
akb/sources/official/saga-registers/bplcon2.htm -text
akb/sources/official/saga-registers/bplcon3.htm -text
akb/sources/official/saga-registers/bplxdat.htm -text
akb/sources/official/saga-registers/bplxmod.htm -text
akb/sources/official/saga-registers/bplxpth.htm -text
akb/sources/official/saga-registers/colorx.htm -text
akb/sources/official/saga-registers/diwhigh.htm -text
akb/sources/official/saga-registers/dskdatr.htm -text
akb/sources/official/saga-registers/hbstrt.htm -text
akb/sources/official/saga-registers/hcenter.htm -text
akb/sources/official/saga-registers/hsstop.htm -text
akb/sources/official/saga-registers/hsstrt.htm -text
akb/sources/official/saga-registers/htotal.htm -text
akb/sources/official/saga-registers/joy0dat.htm -text
akb/sources/official/saga-registers/sprxctl.htm -text
akb/sources/official/saga-registers/sprxdata.htm -text
akb/sources/official/saga-registers/sprxpos.htm -text
akb/sources/official/saga-registers/sprxpth.htm -text
akb/sources/official/saga-registers/vbstrt.htm -text
akb/sources/official/saga-registers/vhposr.htm -text
akb/sources/official/saga-registers/vposr.htm -text
akb/sources/official/saga-registers/vsstrt.htm -text
akb/sources/official/saga-registers/vtotal.htm -text
9 changes: 8 additions & 1 deletion .github/workflows/kb-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- uses: actions/setup-python@v7
with:
python-version: "3.12"
- run: pip install pyyaml==6.0.2
- run: pip install pyyaml==6.0.2 jsonschema==4.25.1

- name: Frontmatter, naming and placement
run: python tools/check_frontmatter.py
Expand All @@ -32,13 +32,20 @@ jobs:
run: python tools/check_skills.py
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Shared skill workflows
run: python tools/check_shared_workflows.py
- name: Cursor plugin package
run: python tools/check_cursor_plugin.py
- name: Claude plugin manifests (static)
run: python tools/check_claude_plugin.py
- name: Markdown lint
uses: DavidAnson/markdownlint-cli2-action@v25
with:
globs: |
**/*.md
!seed/**
!templates/**
!akb/**

compile-examples:
# ApolloCrossDev supports Ubuntu 24.04 only.
Expand Down
19 changes: 15 additions & 4 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -229,14 +229,25 @@ knowledge base files it needs instead of repeating them.
| `skills/apollo-build/` | Apollo V4 code is compiled, linked or assembled, flags come up, a build fails, or before presenting code |
| `skills/akb-lesson/` | a project, release or milestone is done, the user asks for a summary, or an assumption from section 2 turned out wrong |

If your agent loads skills by itself (Claude Code with the `akb` plugin,
or an agent whose skills folder links to this `skills/` folder), it picks
them up from their descriptions. If it doesn't, read
If your agent loads skills by itself (Claude Code or Cursor with the `akb`
plugin, or an agent whose skills folder links to this `skills/` folder), it
picks them up from their descriptions. If it doesn't, read
`skills/<name>/SKILL.md` when the task matches the table above, and follow
it. Paths in a SKILL.md are relative to its own folder or, when marked
`KB`, to the knowledge base root.

A project reads its own `ApolloKnowledgeBase/` submodule when that submodule
is initialized. That pin is authoritative. Otherwise the agent uses the
knowledge base bundled with the installed `akb` plugin (Claude Code or
Cursor). `tools/resolve_kb.py` prints which one, or the exact problem. The
Cursor rule `rules/apollo-v4.mdc` only points at this file and those skills.

Claude Code users install the skills once with
`/plugin marketplace add ApolloTeam-dev/ApolloKnowledgeBase` and
`/plugin install akb@apolloknowledgebase`; they are then called as
`/akb:apollo-build` and so on.
`/akb:apollo-build` and so on. Cursor users install the plugin as described
in [docs/cursor-plugin.md](docs/cursor-plugin.md) and call `/apollo-new-project`,
`/apollo-build`, and `/akb-lesson`. The Cursor marketplace package is the
generated directory `akb/`. The canonical skills and knowledge files stay
at this repository's root. `tools/package_cursor_plugin.py` writes `akb/`.
Do not edit that directory by hand.
68 changes: 56 additions & 12 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,14 @@ Not content: `templates/` (file, repo and seed templates), `sources/`
skills, step 2), `evals/` (AI benchmarks, step 5), `tools/` (CI scripts,
and the V4 test runner in `tools/v4/`).

`docs/` is operational documentation: how to install or check an editor
plugin. It is not Apollo V4 knowledge, it is not written from
`templates/files/`, and it has no knowledge-base frontmatter. The Cursor
guide is `docs/cursor-plugin.md`. `rules/` holds editor rules that point
at `AGENTS.md`. Those rules are not knowledge-base content either.
`akb/` is not content either. It is the generated Cursor install tree.
`docs/cursor-plugin.md` says how it relates to these canonical files.

Each chip folder keeps its register map in `registers.md` inside that folder.
The official SAGA register documentation is generated into
`core/saga-registers/` (document intake, section 11); the chip folders link
Expand Down Expand Up @@ -147,8 +155,10 @@ hardware programming during a takeover goes in `core/`. Both use

## 4. Frontmatter

Every file starts with YAML frontmatter. CI rejects files with missing
required fields or invalid values.
Every knowledge-base content file starts with YAML frontmatter. CI rejects
content files with missing required fields or invalid values. Operational
documentation does not use this frontmatter: `docs/`, `README.md`,
`AGENTS.md` and this file (section 2).

```yaml
---
Expand Down Expand Up @@ -407,14 +417,27 @@ On every merge to `main`, `generate_codeowners.py` regenerates
`.github/CODEOWNERS.base`.

The `seed/`, `sources/` and `templates/` folders are excluded from content
checks.
checks. `docs/` and `rules/` are excluded from the content frontmatter
check only (`tools/kblib.py`). They are operational documentation and
editor rules, not knowledge-base files, so they do not take knowledge-base
frontmatter. `docs/*.md` stays in the internal-link check and in Markdown
lint. `tools/check_links.py` does not skip `docs/`. `akb/` is the generated
Cursor package. Content checks, the link check, and Markdown lint skip it.
`tools/check_cursor_plugin.py` checks that directory against
`tools/package_cursor_plugin.py` instead. Do not edit files under `akb/`
by hand.

Run the checks locally before opening a pull request:

```sh
pip install pyyaml
pip install pyyaml jsonschema
python tools/check_frontmatter.py
python tools/check_links.py
python tools/check_skills.py
python tools/check_shared_workflows.py
python tools/package_cursor_plugin.py --check
python tools/check_cursor_plugin.py
python tools/check_claude_plugin.py
```

---
Expand Down Expand Up @@ -485,20 +508,41 @@ skill points to it.
- **Format:** the open Agent Skills format. One folder per skill,
`skills/<name>/SKILL.md`, with frontmatter `name` (equal to the folder
name: lowercase letters, digits and single hyphens) and `description`
(what the skill does and when to use it, at most 1024 characters). No
other frontmatter fields, so every agent can read it.
(what the skill does and when to use it, at most 1024 characters, on one
line). No other frontmatter fields, so every agent can read it.
- **Description:** the agent decides from it alone whether to use the skill.
Name the tasks and the words developers use, and say "even when it looks
like ordinary m68k or Amiga work" where AGENTS.md section 2 applies.
- **Body:** at most 500 lines. Point to knowledge base files as
`KB <path>`; don't copy their content. Files of the skill itself
(`scripts/`, `assets/`) are referenced relative to its folder.
- **Scripts:** POSIX `sh`, no Claude-specific variables. Code in `assets/`
must build with ApolloCrossDev without warnings.
- **Scripts:** POSIX `sh`, no Claude-specific variables. The file in
`skills/<name>/scripts/` is the entry point the skill runs. It may call
one shared program in `tools/` written with the Python standard library.
Both plugins use that same entry point. Do not put a second copy of the
program under `skills/`, and do not replace the `sh` entry point with a
Python script. Code in `assets/` must build with ApolloCrossDev without
warnings.
- **New skills** are listed in AGENTS.md section 9 in the same pull request.
- Claude Code installs `skills/` as the plugin `akb` (`.claude-plugin/`);
other agents read it through AGENTS.md section 9.
- Claude Code installs the repository root as the plugin `akb`
(`.claude-plugin/`, marketplace source `./`).
- Cursor's GitHub marketplace installs the generated directory `akb/`
(`.cursor-plugin/marketplace.json`, source `akb`). The canonical skill
files stay in `skills/`. `tools/package_cursor_plugin.py` copies them,
with the knowledge base and the shared programs, into `akb/`. Do not
edit `akb/` by hand and do not keep a separate skill text for Cursor.
See `docs/cursor-plugin.md`.
- Other agents read the skills through AGENTS.md section 9.

CI runs `tools/check_skills.py` on every pull request: frontmatter, name,
description length, body length, and that every `KB <path>` and file of
the skill exists.
description length, a single-line description, body length, and that every
`KB <path>` and file of the skill exists. It also runs
`tools/check_shared_workflows.py` (those entry points, in a temporary
directory), `tools/check_cursor_plugin.py` (manifests, the generated
`akb/` package, and a temporary copy of that package) and
`tools/check_claude_plugin.py` (plugin manifests). Those checks do not
load Cursor or Claude Code. The default workflow check is fixture-only and
does not run Make; it prints `RESULT guided-build SKIPPED`. Pass
`--run-toolchain` for an authorised real compile probe. That probe may
print `NOT VERIFIED` when ApolloCrossDev is absent, and that line is not
a successful compile.
19 changes: 18 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,28 @@ execution mode (`os-friendly` or `os-takeover`) and V4 model it applies to.
AI agents working in that repository then find and follow the knowledge base
automatically.

Claude Code and Cursor load the same three skills as the plugin `akb`.
These are the entry points. The procedures stay in the skill files.

- Claude Code: `/plugin marketplace add ApolloTeam-dev/ApolloKnowledgeBase`,
then `/plugin install akb@apolloknowledgebase`. The skills are
`/akb:apollo-new-project`, `/akb:apollo-build` and `/akb:akb-lesson`.
The marketplace name stays `apolloknowledgebase` (`AGENTS.md` section 9).
Point that marketplace at another clone only when the developer asks.
- Cursor: install the generated `akb/` directory as described in
[docs/cursor-plugin.md](docs/cursor-plugin.md), then
`/apollo-new-project`, `/apollo-build` and `/akb-lesson`.
The canonical skills and articles stay at the repository root.

`apollo-new-project` tracks
`https://github.com/ApolloTeam-dev/ApolloKnowledgeBase` unless the develope
asks for another clone URL.

---

## Contributing

Everyone in the Apollo community can contribute. Read `CONTRIBUTING.md` for
Everyone in the Apollo community can contribute. Read `CONTRIBUTING.md` fo
the file format and review process. The most valuable contributions are:

- Places where ApolloOS, the 68080 or SAGA differ from what developers (and
Expand Down
11 changes: 11 additions & 0 deletions akb/.cursor-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"name": "akb",
"version": "1.0.0",
"description": "Skills for Apollo V4 development with ApolloKnowledgeBase: apollo-new-project, apollo-build, and akb-lesson. The knowledge base ships with the plugin.",
"author": {
"name": "Apollo Team"
},
"homepage": "https://apolloknowledgebase.com",
"repository": "https://github.com/ApolloTeam-dev/ApolloKnowledgeBase",
"keywords": ["apollo", "vampire", "68080", "saga", "amiga", "apolloos"]
}
13 changes: 13 additions & 0 deletions akb/.github/CODEOWNERS.base
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Default reviewers for everything not matched below, including new files
# that are not yet in CODEOWNERS. Later lines take precedence.
* @WDrijver @TuKo1982

# Fixed owners for files without frontmatter.
/README.md @WDrijver @TuKo1982
/AGENTS.md @WDrijver @TuKo1982
/CONTRIBUTING.md @WDrijver @TuKo1982
/templates/ @WDrijver @TuKo1982
/tools/ @WDrijver @TuKo1982
/sources/ @WDrijver @TuKo1982
/.github/ @WDrijver @TuKo1982
/.markdownlint.jsonc @WDrijver @TuKo1982
Loading