@devel-solid/agentscli-hub 0.0.0-stage → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +65 -2
  3. package/dist/assets/.agents/skills/agentscli-hub-edit-agents/SKILL.md +23 -0
  4. package/dist/assets/.agents/skills/agentscli-hub-edit-agents/scripts/THIRD_PARTY_LICENSES.txt +916 -0
  5. package/dist/assets/.agents/skills/agentscli-hub-edit-agents/scripts/support.mjs +16705 -0
  6. package/dist/assets/.agents/skills/agentscli-hub-edit-agents/scripts/validate.mjs +43 -0
  7. package/dist/assets/.agents/skills/agentscli-hub-publish/SKILL.md +25 -0
  8. package/dist/assets/.agents/skills/agentscli-hub-publish/references/publication.md +13 -0
  9. package/dist/assets/.agents/skills/agentscli-hub-publish/scripts/THIRD_PARTY_LICENSES.txt +916 -0
  10. package/dist/assets/.agents/skills/agentscli-hub-publish/scripts/release.mjs +551 -0
  11. package/dist/assets/.agents/skills/agentscli-hub-publish/scripts/support.mjs +16705 -0
  12. package/dist/assets/.agents/skills/agentscli-hub-write-conventions/SKILL.md +23 -0
  13. package/dist/assets/.agents/skills/agentscli-hub-write-conventions/scripts/THIRD_PARTY_LICENSES.txt +916 -0
  14. package/dist/assets/.agents/skills/agentscli-hub-write-conventions/scripts/support.mjs +16705 -0
  15. package/dist/assets/.agents/skills/agentscli-hub-write-conventions/scripts/validate.mjs +43 -0
  16. package/dist/assets/.agents/skills/agentscli-hub-write-shared-conventions/SKILL.md +23 -0
  17. package/dist/assets/.agents/skills/agentscli-hub-write-shared-conventions/scripts/THIRD_PARTY_LICENSES.txt +916 -0
  18. package/dist/assets/.agents/skills/agentscli-hub-write-shared-conventions/scripts/support.mjs +16705 -0
  19. package/dist/assets/.agents/skills/agentscli-hub-write-shared-conventions/scripts/validate.mjs +43 -0
  20. package/dist/assets/.agents/skills/agentscli-hub-write-shared-skills/SKILL.md +25 -0
  21. package/dist/assets/.agents/skills/agentscli-hub-write-shared-skills/references/resource-format.md +47 -0
  22. package/dist/assets/.agents/skills/agentscli-hub-write-shared-skills/scripts/THIRD_PARTY_LICENSES.txt +916 -0
  23. package/dist/assets/.agents/skills/agentscli-hub-write-shared-skills/scripts/support.mjs +16705 -0
  24. package/dist/assets/.agents/skills/agentscli-hub-write-shared-skills/scripts/validate.mjs +43 -0
  25. package/dist/assets/.gitattributes +4 -0
  26. package/dist/assets/AGENTS.md +23 -0
  27. package/dist/assets/README.md +13 -0
  28. package/dist/assets/agentscli-hub.yml +2 -0
  29. package/dist/assets/conventions/.gitkeep +0 -0
  30. package/dist/assets/docs/conventions/resource-authoring.md +13 -0
  31. package/dist/assets/gitignore.tpl +2 -0
  32. package/dist/assets/skills/.gitkeep +0 -0
  33. package/dist/cli.js +9 -0
  34. package/dist/runtime.js +610 -0
  35. package/package.json +37 -4
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 agentscli contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,66 @@
1
- # Temporary Holding Version
1
+ # agentscli-hub
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ Create a standalone, provider-independent Git hub of conventions and complete skills.
4
+
5
+ ```sh
6
+ agentscli-hub apply ./team-hub --dry-run
7
+ agentscli-hub apply ./team-hub
8
+ ```
9
+
10
+ Node.js 22, 24, or 26 is supported. Git is required to create a repository. The only public operation is `apply`; `--help`, `--version`, and `--dry-run` are available. Initialization creates no remote, commit, tag, or push.
11
+
12
+ Repeated application restores the five operational skill trees and the managed README from the installed CLI, deleting extra/stale managed files. Authored `AGENTS.md`, `docs/conventions/`, `conventions/`, and `skills/` stay in place, including deliberate deletions. The content manifest version and Git metadata/policy are preserved. Do not edit managed operational skills; make shared resources in the authoring directories.
13
+
14
+ `agentscli-hub.yml` contains exactly `schemaVersion: 1` and content `version: 1.0.0` initially. That content version and hub `v1.0.0` tag are independent of this CLI package's `0.1.0` and product tag `agentscli-hub-v0.1.0`.
15
+
16
+ Discover the hub's five included skills through their names/descriptions: internal convention maintenance, root AGENTS editing, shared convention maintenance, shared skill maintenance, and requested content publication. Each ships its own deterministic checks. Conventions are self-contained and do not link to conventions or skills. Skills declare dependencies with a string `metadata.requires: requires.yml` and native YAML lists of `id`/`source`; shared resources may require only resources from the same hub. Consumers select every shared dependency explicitly.
17
+
18
+ Ask the agent to "Publish the hub changes". The included publication skill assesses the actual impact, derives the content version, validates, commits/tags/pushes through native Git, and verifies the intended refs. Configure the intended Git remote/access first; no vendor SDK or token collection is used. No publication happens during apply or validation. A failed multi-file operation reports completed and pending effects; it does not claim rollback or keep a recovery database.
19
+
20
+ Run `npm run check` from the monorepo root for all workspace gates. Tests are isolated units with injected filesystem/Git boundaries, not live provider or installation suites.
21
+
22
+ An interrupted first creation can resume when native Git remains unborn, has no refs, staging or remotes, and the non-Git files are an exact subset of the initial scaffold. Changed, unrelated, or unsafe content requires explicit reconciliation. The manifest is written last; after identification, repeat apply always preserves authored deletions.
23
+
24
+ A complete shared convention, `conventions/testing.tpl.md` (identity `testing`):
25
+
26
+ ```markdown
27
+ ---
28
+ trigger: Read before creating or changing automated tests.
29
+ ---
30
+
31
+ # Testing
32
+
33
+ Check observable behavior with small deterministic inputs. Cover a concrete failure or regression when one motivates a change. Keep test fixtures independent of network services and preserve the project's established test framework.
34
+ ```
35
+
36
+ A complete shared skill, `skills/review-tests/SKILL.md` (identity `review-tests`):
37
+
38
+ ```markdown
39
+ ---
40
+ name: review-tests
41
+ description: Review requested automated test changes for meaningful behavior coverage and regressions.
42
+ license: MIT
43
+ compatibility: Requires Node.js >= 22.
44
+ metadata:
45
+ requires: requires.yml
46
+ ---
47
+
48
+ # Review tests
49
+
50
+ Discover the required testing convention by its hub identity through the active project's instructions. Confirm that the convention comes from the accepted hub revision.
51
+
52
+ Read the requested test changes and the behavior they exercise. Check whether assertions can detect the stated regression, whether failure paths are covered, and whether fixtures are deterministic. Report concrete actionable findings with their affected files and behavior. Do not implement changes or publish anything during this review.
53
+
54
+ The dependency declaration is this skill's own [requires.yml](requires.yml).
55
+ ```
56
+
57
+ The complete sibling `skills/review-tests/requires.yml`:
58
+
59
+ ```yaml
60
+ conventions:
61
+ - id: testing
62
+ source: hub
63
+ skills: []
64
+ ```
65
+
66
+ This skill needs no additional support files. Consumers explicitly select both `testing` and `review-tests`; the dependency declaration never adds selections automatically. Shared resources retain their authored metadata, without CLI generator stamps.
@@ -0,0 +1,23 @@
1
+ ---
2
+ name: agentscli-hub-edit-agents
3
+ description: Curate the hub project's root AGENTS.md instructions and resource discovery. Use when changing how agents navigate or work in this hub, without editing conventions or shared resources.
4
+ license: MIT
5
+ compatibility: Requires Node.js >= 22.
6
+ metadata:
7
+ generatedBy: "@devel-solid/agentscli-hub"
8
+ generatorVersion: 0.1.0
9
+ ---
10
+
11
+ # Hub instructions
12
+
13
+ Edit only the handwritten English root `AGENTS.md`. Discover existing conventions and available operational skills by their purpose and identity. Preserve useful discovery links in AGENTS.md; the no-cross-resource-link rule applies to conventions and skills, not this discovery file.
14
+
15
+ Keep instructions concise and preserve the separation between internal rules and shared resources. Route internal convention work, shared convention work, shared skill work, and requested publication to their separate skills by identity. Do not embed a second copy of their procedures or run publication while editing instructions.
16
+
17
+ Run this skill's own [scripts/validate.mjs](scripts/validate.mjs) before and after the edit:
18
+
19
+ ```sh
20
+ node <this-skill>/scripts/validate.mjs --repo-root <hub>
21
+ ```
22
+
23
+ Resolve `<this-skill>` from this skill's actual directory and `<hub>` from the active project root. This is read-only validation. Fix all mechanical diagnostics, then review meaning, activation, and scope. Report changed files and actual checks; do not generate, import, commit, or publish implicitly.