@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.
- package/LICENSE +21 -0
- package/README.md +65 -2
- package/dist/assets/.agents/skills/agentscli-hub-edit-agents/SKILL.md +23 -0
- package/dist/assets/.agents/skills/agentscli-hub-edit-agents/scripts/THIRD_PARTY_LICENSES.txt +916 -0
- package/dist/assets/.agents/skills/agentscli-hub-edit-agents/scripts/support.mjs +16705 -0
- package/dist/assets/.agents/skills/agentscli-hub-edit-agents/scripts/validate.mjs +43 -0
- package/dist/assets/.agents/skills/agentscli-hub-publish/SKILL.md +25 -0
- package/dist/assets/.agents/skills/agentscli-hub-publish/references/publication.md +13 -0
- package/dist/assets/.agents/skills/agentscli-hub-publish/scripts/THIRD_PARTY_LICENSES.txt +916 -0
- package/dist/assets/.agents/skills/agentscli-hub-publish/scripts/release.mjs +551 -0
- package/dist/assets/.agents/skills/agentscli-hub-publish/scripts/support.mjs +16705 -0
- package/dist/assets/.agents/skills/agentscli-hub-write-conventions/SKILL.md +23 -0
- package/dist/assets/.agents/skills/agentscli-hub-write-conventions/scripts/THIRD_PARTY_LICENSES.txt +916 -0
- package/dist/assets/.agents/skills/agentscli-hub-write-conventions/scripts/support.mjs +16705 -0
- package/dist/assets/.agents/skills/agentscli-hub-write-conventions/scripts/validate.mjs +43 -0
- package/dist/assets/.agents/skills/agentscli-hub-write-shared-conventions/SKILL.md +23 -0
- package/dist/assets/.agents/skills/agentscli-hub-write-shared-conventions/scripts/THIRD_PARTY_LICENSES.txt +916 -0
- package/dist/assets/.agents/skills/agentscli-hub-write-shared-conventions/scripts/support.mjs +16705 -0
- package/dist/assets/.agents/skills/agentscli-hub-write-shared-conventions/scripts/validate.mjs +43 -0
- package/dist/assets/.agents/skills/agentscli-hub-write-shared-skills/SKILL.md +25 -0
- package/dist/assets/.agents/skills/agentscli-hub-write-shared-skills/references/resource-format.md +47 -0
- package/dist/assets/.agents/skills/agentscli-hub-write-shared-skills/scripts/THIRD_PARTY_LICENSES.txt +916 -0
- package/dist/assets/.agents/skills/agentscli-hub-write-shared-skills/scripts/support.mjs +16705 -0
- package/dist/assets/.agents/skills/agentscli-hub-write-shared-skills/scripts/validate.mjs +43 -0
- package/dist/assets/.gitattributes +4 -0
- package/dist/assets/AGENTS.md +23 -0
- package/dist/assets/README.md +13 -0
- package/dist/assets/agentscli-hub.yml +2 -0
- package/dist/assets/conventions/.gitkeep +0 -0
- package/dist/assets/docs/conventions/resource-authoring.md +13 -0
- package/dist/assets/gitignore.tpl +2 -0
- package/dist/assets/skills/.gitkeep +0 -0
- package/dist/cli.js +9 -0
- package/dist/runtime.js +610 -0
- package/package.json +37 -4
package/dist/assets/.agents/skills/agentscli-hub-write-shared-conventions/scripts/validate.mjs
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { createRequire as __createRequire } from 'node:module'; const require = __createRequire(import.meta.url);
|
|
2
|
+
|
|
3
|
+
// assets/templates/skills/agentscli-hub-write-shared-conventions/scripts/validate.mjs
|
|
4
|
+
import path from "node:path";
|
|
5
|
+
import { pathToFileURL } from "node:url";
|
|
6
|
+
import { inspectHub } from "./support.mjs";
|
|
7
|
+
function validate(root, options = {}) {
|
|
8
|
+
return inspectHub(root, { ...options, scope: "shared-conventions" });
|
|
9
|
+
}
|
|
10
|
+
function main(args, { log = console.log, error = console.error } = {}) {
|
|
11
|
+
if (args.length !== 2 || args[0] !== "--repo-root" || !args[1]) {
|
|
12
|
+
error("Usage: validate.mjs --repo-root <hub>");
|
|
13
|
+
return 2;
|
|
14
|
+
}
|
|
15
|
+
try {
|
|
16
|
+
const result = validate(path.resolve(args[1]));
|
|
17
|
+
log(
|
|
18
|
+
JSON.stringify({
|
|
19
|
+
ok: true,
|
|
20
|
+
scope: "shared-conventions",
|
|
21
|
+
conventions: result.conventions.size,
|
|
22
|
+
skills: result.skills.size
|
|
23
|
+
})
|
|
24
|
+
);
|
|
25
|
+
return 0;
|
|
26
|
+
} catch (cause) {
|
|
27
|
+
error(
|
|
28
|
+
JSON.stringify({
|
|
29
|
+
ok: false,
|
|
30
|
+
code: cause.code ?? "operation",
|
|
31
|
+
file: cause.file ?? "",
|
|
32
|
+
message: cause.message
|
|
33
|
+
})
|
|
34
|
+
);
|
|
35
|
+
return cause.code ? 2 : 3;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
if (process.argv[1] && import.meta.url === pathToFileURL(path.resolve(process.argv[1])).href)
|
|
39
|
+
process.exitCode = main(process.argv.slice(2));
|
|
40
|
+
export {
|
|
41
|
+
main,
|
|
42
|
+
validate
|
|
43
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: agentscli-hub-write-shared-skills
|
|
3
|
+
description: Create, review, and maintain shared skills in a hub. Use for complete portable skill directories intended for explicit project selection; do not use for this hub's operational skills.
|
|
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
|
+
# Shared skills
|
|
12
|
+
|
|
13
|
+
Edit only direct-child shared skill directories under `skills/`. Preserve complete support trees, opaque files, and portable executable intent. A skill's standard name must match its direct-child directory. Product operational names are reserved. Never execute downloaded or proposed skill code merely to inspect it.
|
|
14
|
+
|
|
15
|
+
Use standard SKILL.md frontmatter with a nonempty name and activation description. Declare optional dependencies only with the string `metadata.requires: requires.yml`. The sibling YAML file has exactly `conventions` and `skills` lists of `{id, source}` mappings, and every shared dependency uses `source: hub` in this same hub revision. Declare all dependencies explicitly; never install or select missing resources automatically. No root-level requires, JSON inside YAML, or encoded multiline dependency data. Mention other resources by identity and have the agent discover them through current project instructions and available skill descriptions. Do not link to conventions, other skills, or their support files, including in executable command examples. Own supporting files may be linked.
|
|
16
|
+
|
|
17
|
+
Read [references/resource-format.md](references/resource-format.md) when declaring dependencies or checking a complete portable example.
|
|
18
|
+
|
|
19
|
+
Run this skill's own [scripts/validate.mjs](scripts/validate.mjs) before and after the edit:
|
|
20
|
+
|
|
21
|
+
```sh
|
|
22
|
+
node <this-skill>/scripts/validate.mjs --repo-root <hub>
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
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.
|
package/dist/assets/.agents/skills/agentscli-hub-write-shared-skills/references/resource-format.md
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# Resource format
|
|
2
|
+
|
|
3
|
+
Read when authoring a shared skill with dependencies. These are complete resource files. A project must explicitly select the skill and every required hub resource from one exact revision; declarations never install anything automatically.
|
|
4
|
+
|
|
5
|
+
An existing shared convention, identity `code-review`:
|
|
6
|
+
|
|
7
|
+
```markdown
|
|
8
|
+
---
|
|
9
|
+
trigger: Read before reviewing code changes.
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
# Code review
|
|
13
|
+
|
|
14
|
+
Check behavior, failure paths, and regressions. Support findings with a concrete trigger and the affected behavior. Keep the review focused on the requested change.
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
The shared skill directory, identity `review-code`, contains exactly these two files for this example.
|
|
18
|
+
|
|
19
|
+
SKILL.md:
|
|
20
|
+
|
|
21
|
+
```markdown
|
|
22
|
+
---
|
|
23
|
+
name: review-code
|
|
24
|
+
description: Review requested code changes for concrete bugs and regressions.
|
|
25
|
+
license: MIT
|
|
26
|
+
compatibility: Requires Node.js >= 22.
|
|
27
|
+
metadata:
|
|
28
|
+
requires: requires.yml
|
|
29
|
+
---
|
|
30
|
+
|
|
31
|
+
# Review code
|
|
32
|
+
|
|
33
|
+
Discover the required code-review convention by its hub identity through the active project's instructions. Confirm it belongs to the accepted hub revision before reviewing.
|
|
34
|
+
|
|
35
|
+
Read the requested diff and relevant callers. Check each suspected issue against a concrete input or failure path. Report actionable findings with the affected file and behavior; report no findings when the review establishes none. Do not implement changes or publish anything as part of this review.
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
requires.yml:
|
|
39
|
+
|
|
40
|
+
```yaml
|
|
41
|
+
conventions:
|
|
42
|
+
- id: code-review
|
|
43
|
+
source: hub
|
|
44
|
+
skills: []
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
The convention has no dependencies and no links to other resources. The skill points only to its own dependency document and discovers external resources by identity. Shared resources retain their authored metadata; the consuming CLI must not stamp or rewrite it. Generator metadata on this hub's separately managed operational skills identifies the producing CLI, rather than versioning a shared resource.
|