feat(core): consolidate skills config, ship JSON schema, simplify gitignore#11
Merged
Conversation
…ignore
- Merge `agnos.json#skills` map and `agnos.json#paths.skillsDir` into a single
`skills: { route, sources }` block, mirroring the `docs` config shape so all
skills configuration lives under one top-level key.
- Add `packages/core/schema.json` (Draft 2020-12) covering the full agnos.json
surface. Ship it in the published tarball; default `$schema` (and
`agnos init` backfill on existing configs) points at
`https://unpkg.com/@luxia/core/schema.json` so editors get
autocomplete/validation out of the box.
- Reduce the gitignore footprint to a single `.agnos/` entry — everything
under it (cache, state.json, materialized skills) is reproducible from
`agnos.json` + `agnos.lock.json`.
Resolves conflicts after main's InitStep feature landed alongside the skills- config consolidation on this branch. - .gitignore: main already covers .agnos and .claude under the AGENTS block; drop the local additions. - packages/core/src/commands/init.ts: keep SCHEMA_URL import alongside main's new init flow. - packages/domain-skills/src/index.ts: rewrite the new initSteps callback to read and persist `skills.route` (this branch's shape) instead of the removed `paths.skillsDir` field.
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.
Summary
agnos.json#skills. The skills map andpaths.skillsDirare now a single block:skills: { route, sources }, mirroring howdocsis configured. One top-level key per domain, no more fragmentation.agnos.json. Newpackages/core/schema.json(Draft 2020-12) covers the full config surface —agents,rules,skills,mcp,docs. The default$schema(andagnos initbackfill on existing projects) points athttps://unpkg.com/@luxia/core/schema.jsonso editors get autocomplete + validation as soon as the next version is published.agnos initnow writes a single.agnos/line instead of.agnos/cache/+.agnos/state.json. Everything under.agnos/is reproducible fromagnos.json+agnos.lock.json.Breaking change
agnos.jsonshape has changed. Before:```json
{
"skills": { "pdf": "github:..." },
"paths": { "skillsDir": ".agnos/skills" }
}
```
After:
```json
{
"skills": {
"route": ".agnos/skills",
"sources": { "pdf": "github:..." }
}
}
```
Existing projects will need to move their skills map under
skills.sourcesand (if customized)paths.skillsDirunderskills.routemanually. No auto-migration is written — flag if you want one added before merge.Notable code touchpoints
Test plan