Skip to content

Commit b2c7abb

Browse files
authored
Merge pull request #30 from ApolloTeam-dev/skills-new-project-order
apollo-new-project: AKB first, then ApolloCrossDev; works from the website prompt
2 parents 9767284 + 5f5a933 commit b2c7abb

2 files changed

Lines changed: 82 additions & 44 deletions

File tree

‎AGENTS.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ knowledge base files it needs instead of repeating them.
225225

226226
| Skill | Use it when |
227227
|---|---|
228-
| `skills/apollo-new-project/` | the user starts a new Apollo V4 project, or wants a folder of Apollo code set up for AI-assisted work |
228+
| `skills/apollo-new-project/` | the user starts a new Apollo V4 project (also from the "Start Apollo V4 Project" prompt on apolloknowledgebase.com), or wants a folder of Apollo code set up for AI-assisted work |
229229
| `skills/apollo-build/` | Apollo V4 code is compiled, linked or assembled, flags come up, a build fails, or before presenting code |
230230
| `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 |
231231

‎skills/apollo-new-project/SKILL.md‎

Lines changed: 81 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,22 @@
11
---
22
name: apollo-new-project
3-
description: Set up a new Apollo V4 software project (game, demo, tool, application, library, driver) as its own git repository with ApolloKnowledgeBase as submodule, a filled-in AGENTS.md, the ApolloCrossDev Makefile and a starting program for os-friendly or os-takeover mode that builds without warnings. Checks ApolloCrossDev first and offers updates. Use when the user wants to start, create, scaffold or set up a new program or project for the Apollo V4, Vampire V4, 68080 or SAGA, or wants an existing folder of Apollo code prepared for AI-assisted work.
3+
description: Set up a new Apollo V4 software project (game, demo, tool, application, library, driver) as its own git repository in which every AI agent uses ApolloKnowledgeBase as its central source of Apollo V4 knowledge, then check, install or update ApolloCrossDev, and create the Makefile and a starting program for os-friendly or os-takeover mode that builds without warnings. Use when the user wants to start, create, scaffold or set up a new program or project for the Apollo V4, Vampire V4, 68080 or SAGA, pastes the "Start Apollo V4 Project" prompt from apolloknowledgebase.com, or wants an existing folder of Apollo code prepared for AI-assisted work.
44
---
55

66
# apollo-new-project
77

88
Create a project that every AI agent can work in correctly from the first
9-
prompt: it knows its target, finds ApolloKnowledgeBase, and builds.
10-
11-
**The knowledge base (KB):** before the project exists, the repository this
12-
skill is in (two folders above this file). KB paths below are relative to
13-
its root. This skill's own files are in `assets/` next to this file.
9+
prompt: it treats ApolloKnowledgeBase (AKB) as the central source of Apollo
10+
V4 knowledge, knows its target, and builds with ApolloCrossDev.
11+
12+
**Where the files are.** You may have this skill as a local copy (an AKB
13+
clone, the Claude Code plugin `akb`) or only from its URL on GitHub. Either
14+
way, from step 2 on use the project's own `ApolloKnowledgeBase/` submodule:
15+
**KB** paths below are relative to it, and this skill's files are in
16+
`ApolloKnowledgeBase/skills/apollo-new-project/assets/`, and the toolchain
17+
check is `ApolloKnowledgeBase/skills/apollo-build/scripts/find-acd.sh`. In step
18+
1, before the submodule exists, read KB files on GitHub if you need them:
19+
`https://raw.githubusercontent.com/ApolloTeam-dev/ApolloKnowledgeBase/main/<path>`.
1420

1521
## 1. Ask what the project is
1622

@@ -33,28 +39,7 @@ answers to the first five.
3339
8. **ApolloLib** for SAGA sound, pictures, PIP, pointer and input [yes]. See
3440
`KB core/best-practices/prefer-library-calls-for-saga-chips.md`.
3541

36-
## 2. Check the toolchain, offer updates
37-
38-
Before creating anything, run the apollo-build skill's check:
39-
`sh <skills folder>/apollo-build/scripts/find-acd.sh`. Then tell the user
40-
what you found and let them choose:
41-
42-
| Finding | Offer |
43-
|---|---|
44-
| `PROBLEM=` ApolloCrossDev not found or incomplete | Install it first (`KB toolchain/index.md`, section Install; needs `sudo`, about 30 minutes). Stop until it is done. |
45-
| `UPDATE=checkout` | `git pull` in the ApolloCrossDev folder: quick, brings new Makefile templates, ApolloLib and scripts. If `LOCAL_CHANGES=` is reported, the user decides about those first. Run the pull only with their consent. |
46-
| `UPDATE=compiler` | Reinstall GCC-6.50-Dev (the command is in the line; needs `sudo`, about 30 minutes; the user runs it). Say what the newer build changes: the bug table in `KB toolchain/compiler-variants.md`. The user may also continue now and reinstall later. |
47-
| `TEMPLATE=` older than v1.2 | `git pull` is required: the project needs `make compile` and builds outside ApolloCrossDev. |
48-
| `UPDATES=none` | Nothing to offer; say the toolchain is up to date. |
49-
50-
Run the check again after an update. The project also needs
51-
`APOLLOCROSSDEV`, because it lives outside `ApolloCrossDev/Projects/`. If
52-
the check notes it is unset, ask the user to add
53-
`export APOLLOCROSSDEV="<ACD_ROOT>"` to `~/.zshrc` (macOS) or `~/.bashrc`
54-
(Linux), next to `AMIGAHOST`. For this session, pass it on the command
55-
line: `APOLLOCROSSDEV=<ACD_ROOT> make compile`.
56-
57-
## 3. Create the repository
42+
## 2. Create the repository with AKB
5843

5944
In `<where>/<name>`, which must not exist yet or be empty:
6045

@@ -66,24 +51,76 @@ git submodule add https://github.com/ApolloTeam-dev/ApolloKnowledgeBase ApolloKn
6651
If the folder already holds code, don't overwrite anything: add only what is
6752
missing and show the user what you would change.
6853

69-
## 4. AGENTS.md and CLAUDE.md
54+
## 3. Make AKB the agents' central source
55+
56+
These files make every agent that opens the project read AKB first.
7057

71-
- `AGENTS.md`: from `KB templates/repo/AGENTS.md`. Fill in every
72-
`<placeholder>` from step 1, remove the template's HTML comments.
58+
- **`AGENTS.md`** (read by most agents): from `KB templates/repo/AGENTS.md`.
59+
Fill in every `<placeholder>` from step 1, remove the template's HTML
60+
comments.
7361
- **Build and test:** `make compile` to build, `make` to build and upload
7462
to the V4 at `$AMIGAHOST`.
7563
- **Relevant knowledge base areas:** pick from the table in
7664
`KB AGENTS.md` section 3. Always `toolchain/`; `os/os-takeover.md` and
7765
`core/` for os-takeover; the SAGA folders that the program will use;
7866
`toolchain/apollolib/` with ApolloLib.
79-
- **Repository-specific rules:** leave one `- <rule>` line only if the user
80-
gives none; better, remove the section's placeholder.
81-
- `CLAUDE.md`: copy `KB templates/repo/CLAUDE.md` as it is (it loads both
82-
AGENTS.md files for Claude Code).
67+
- **Repository-specific rules:** the user's rules, or remove the section's
68+
placeholder line.
69+
- **`CLAUDE.md`** (Claude Code): copy `KB templates/repo/CLAUDE.md` as it is.
70+
It loads both AGENTS.md files.
71+
- **`.claude/settings.json`** (Claude Code): offers the AKB skills to
72+
everyone who opens the project. Each person installs the plugin once with
73+
`/plugin install akb@apolloknowledgebase`; Claude Code reminds them.
74+
75+
```json
76+
{
77+
"extraKnownMarketplaces": {
78+
"apolloknowledgebase": {
79+
"source": { "source": "github", "repo": "ApolloTeam-dev/ApolloKnowledgeBase" }
80+
}
81+
},
82+
"enabledPlugins": {
83+
"akb@apolloknowledgebase": true
84+
}
85+
}
86+
```
87+
88+
Other agents reach the AKB skills through `KB AGENTS.md` section 9, which
89+
the project's AGENTS.md sends them to.
90+
91+
## 4. ApolloCrossDev: check, install or update
92+
93+
Run the check from the submodule:
94+
95+
```sh
96+
sh ApolloKnowledgeBase/skills/apollo-build/scripts/find-acd.sh
97+
```
98+
99+
Tell the user what you found and let them choose:
100+
101+
| Finding | Offer |
102+
|---|---|
103+
| `PROBLEM=` ApolloCrossDev not found | Install it (`KB toolchain/index.md`, sections Host requirements and Install). With the user's consent, clone it: `git clone https://github.com/WDrijver/ApolloCrossDev ~/ApolloCrossDev`. The install script needs `sudo` and takes about 30 minutes, so the user runs it in their terminal: `cd ~/ApolloCrossDev && ./GCC-6.50-Dev-MacOS.sh` (or `-Linux.sh`). Wait until it is done. |
104+
| `PROBLEM=` a binary is missing | The install failed: point the user to `Compilers/GCC-6.50-Dev/_logs/*_err.log` and the reinstall command. Wait until it is fixed. |
105+
| `UPDATE=checkout` | `git pull` in the ApolloCrossDev folder: quick, brings new Makefile templates, ApolloLib and scripts. If `LOCAL_CHANGES=` is reported, the user decides about those first. Run the pull only with their consent. |
106+
| `UPDATE=compiler` | Reinstall GCC-6.50-Dev (the command is in the line; `sudo`, about 30 minutes; the user runs it). Say what the newer build changes: the bug table in `KB toolchain/compiler-variants.md`. The user may also continue now and reinstall later. |
107+
| `TEMPLATE=` older than v1.2 | `git pull` is required: the project needs `make compile` and builds outside ApolloCrossDev. |
108+
| `UPDATES=none` | Say the toolchain is up to date. |
109+
110+
Run the check again after an install or update, until it reports no
111+
`PROBLEM=` line.
112+
113+
**`APOLLOCROSSDEV`:** the project lives outside `ApolloCrossDev/Projects/`,
114+
so the Makefile needs it. If the check notes it is unset, offer to add
115+
`export APOLLOCROSSDEV="<ACD_ROOT>"` to `~/.zshrc` (macOS) or `~/.bashrc`
116+
(Linux), next to `AMIGAHOST` (the V4's IP address, needed for upload; ask
117+
for it if that is missing too). Change the file only with the user's
118+
consent. For this session, pass it on the command line:
119+
`APOLLOCROSSDEV=<ACD_ROOT> make compile`.
83120

84121
## 5. Makefile
85122

86-
Copy `$APOLLOCROSSDEV/Projects/_makefiles/Makefile` and change only:
123+
Copy `<ACD_ROOT>/Projects/_makefiles/Makefile` and change only:
87124

88125
| Line | Set to |
89126
|---|---|
@@ -96,8 +133,8 @@ Keep `C_OPTIONS` and `S_FLAGS` as they are.
96133

97134
## 6. The starting program
98135

99-
Copy one file from `assets/` to `main.c` and replace `@PROJECT@`, `@WHAT@`
100-
and `@TARGETS@` (core, model, target OS):
136+
Copy one file from this skill's `assets/` to `main.c` and replace
137+
`@PROJECT@`, `@WHAT@` and `@TARGETS@` (core, model, target OS):
101138

102139
| Mode | ApolloLib | File |
103140
|---|---|---|
@@ -113,13 +150,14 @@ Copy `assets/gitignore` to `.gitignore`.
113150

114151
## 7. Build it
115152

116-
Build with the apollo-build skill (`make compile`). It must end with no
117-
errors and no warnings before you continue.
153+
Build as the apollo-build skill describes (`KB skills/apollo-build/SKILL.md`):
154+
`make compile`. It must end with no errors and no warnings before you
155+
continue.
118156

119157
## 8. Hand over
120158

121159
- Show the user the files you made and the build result.
122160
- Offer a first commit; commit only when they agree.
123-
- Tell them how to work from here: open the project folder in their agent;
124-
`git submodule update --remote ApolloKnowledgeBase` brings in newer KB
125-
content when they want it.
161+
- Tell them how to work from here: open the project folder in their agent,
162+
which now reads AKB first; `git submodule update --remote ApolloKnowledgeBase`
163+
brings in newer AKB content when they want it.

0 commit comments

Comments
 (0)