Repository navigation
Add @openagt/init: one command gives a project its skills - #2050
Merged
Merged
Conversation
…ves, ignored paths said, a list that fits
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The fourth step of #2023: the command itself.
npx @openagt/initshows the skills as a list with ticks and writes the ticked ones into the project.👤
npx @openagt/initis the one front door. It adds the skills, and ends by asking "Open the dashboard?".addandremoveby name also work, for scripts.🤖 automated · Opus 5.5, effort high
What a person sees
The new package,
packages/init(@openagt/init).agents/skills/<name>/SKILL.md, and one link,.claude/skills/<name>. Nothing else is written: nopackage.json, no install.add <name>…,remove <name>…,update [<name>…],list, and--commit. They ask nothing and print JSON, like the skills' own commands.applyChangeis the one place every change goes through. The dashboard's "Add skills" screen will use it too, in the next pull request.What moved
installProject) moves from the dashboard to@openagt/agent-data, so init and the dashboard share it.npx agent-scheduler start), and to take its lines back.Picks of mine
metadata.versionto the text's front matter. This answers two open questions of the issue. A later init, or the dashboard, can tell three cases apart when a project's text is not the one it carries: the project's is older ("a newer text is there"), it was changed by hand (named, and left; onlyupdate <name>writes over it), or the reader itself is the older one (it says nothing)..openagent/. The scheduler's lines live there.addleaves a skill the project already holds as it is. Onlyupdate <name>writes over a text.yaml.openagent-init. The commit says "Add OpenAgent skills" (or Remove, or Update).The issue's open questions, answered
update-ticketsandpost-merge-cleanupcallghin their shell line, which fails there, so those two rows never start.Known
.claude/or.agents/cannot commit the files. Init says which path git ignores and leaves the files.metadata.versionreads as written by init.npx @openagt/dashboard. It changes when this is on npm.To publish (never by an agent):
@openagt/initat0.1.0, with the 26 at0.1.0.@openagt/agent-data,@openagt/agent-runnerand@openagt/dashboardhave changed since their published versions and need a new number first; the next pull request bumps them.Checked
npx @openagt/initin a fresh folder, with the packages served by a throwaway registry on this Mac (never npm). Then a skill's command by its full name from that registry, in the project init had set up..claude/skillsis itself a link, Windows) and a list of smaller things. All acted on, each with a test.DECISIONS.md
packages/init/DECISIONS.mdis new. Its eight bullets write down the picks under 👤 and nothing of mine: