@aragon-agent/cli 0.6.29 → 0.6.31
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/CHANGELOG.md +2123 -2103
- package/README.md +81 -14
- package/dist/agent/project-guidance-prompt.js +20 -20
- package/dist/cli.js +169 -56
- package/dist/commands/builtins.js +4 -0
- package/dist/commands/perf.d.ts +25 -1
- package/dist/commands/perf.js +26 -2
- package/dist/commands/registry.d.ts +6 -0
- package/dist/config/env.js +4 -0
- package/dist/config/load.d.ts +3 -1
- package/dist/config/load.js +12 -1
- package/dist/config/schema.d.ts +27 -0
- package/dist/config/schema.js +9 -0
- package/dist/config/ui-state.d.ts +9 -0
- package/dist/config/ui-state.js +9 -0
- package/dist/ui/App.d.ts +11 -1
- package/dist/ui/App.js +122 -62
- package/dist/ui/ScrollbackShell.d.ts +28 -0
- package/dist/ui/ScrollbackShell.js +10 -0
- package/dist/ui/frame-differ.d.ts +12 -0
- package/dist/ui/overlays/HelpOverlay.d.ts +1 -1
- package/dist/ui/overlays/HelpOverlay.js +21 -3
- package/dist/ui/screen.d.ts +16 -0
- package/dist/ui/screen.js +32 -0
- package/dist/ui/scrollback/budget.d.ts +43 -0
- package/dist/ui/scrollback/budget.js +44 -0
- package/dist/ui/scrollback/drain.d.ts +32 -0
- package/dist/ui/scrollback/drain.js +64 -0
- package/dist/ui/scrollback/exit-summary.d.ts +23 -0
- package/dist/ui/scrollback/exit-summary.js +25 -0
- package/dist/ui/scrollback/limits.d.ts +25 -0
- package/dist/ui/scrollback/limits.js +25 -0
- package/dist/ui/scrollback/live-preview.d.ts +26 -0
- package/dist/ui/scrollback/live-preview.js +106 -0
- package/dist/ui/scrollback/renderer.d.ts +38 -0
- package/dist/ui/scrollback/renderer.js +158 -0
- package/dist/ui/scrollback/scrollback-writer.d.ts +74 -0
- package/dist/ui/scrollback/scrollback-writer.js +263 -0
- package/dist/ui/scrollback/settled-boundary.d.ts +42 -0
- package/dist/ui/scrollback/settled-boundary.js +106 -0
- package/dist/ui/scrollback/use-scrollback-view.d.ts +92 -0
- package/dist/ui/scrollback/use-scrollback-view.js +263 -0
- package/dist/ui/scrollback/writer-shapes.d.ts +61 -0
- package/dist/ui/scrollback/writer-shapes.js +114 -0
- package/dist/ui/stdout-frame-writer.js +12 -2
- package/dist/ui/terminal-plan.d.ts +52 -0
- package/dist/ui/terminal-plan.js +49 -0
- package/dist/ui/transcript-text.d.ts +11 -0
- package/dist/ui/transcript-text.js +21 -7
- package/dist/ui/use-startup-notices.d.ts +12 -1
- package/dist/ui/use-startup-notices.js +28 -2
- package/package.json +2 -2
- package/skills/project-indexer/SKILL.md +163 -163
- package/skills/project-indexer/templates/cleancode-overrides.md +46 -46
- package/skills/project-indexer/templates/cleancode-template.md +94 -94
- package/skills/project-indexer/templates/config-template.md +69 -69
- package/skills/project-indexer/templates/index-template.md +129 -129
- package/skills/skill-creator/SKILL.md +96 -96
|
@@ -1,96 +1,96 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: skill-creator
|
|
3
|
-
description: Author a new AragonAgent skill. Use when the user asks to save a procedure as a skill, or when you notice you have re-derived the same multi-step process twice in a session.
|
|
4
|
-
version: 1.1.0
|
|
5
|
-
license: MIT
|
|
6
|
-
activation: auto
|
|
7
|
-
keywords: [meta, authoring, skills]
|
|
8
|
-
# Enforced as a per-turn tool ceiling. `edit_file` is here because revising an
|
|
9
|
-
# existing skill is the single most common thing this skill is asked to do —
|
|
10
|
-
# without it, "fix the description on my deploy skill" fails on the first edit.
|
|
11
|
-
allowed-tools:
|
|
12
|
-
- read_file
|
|
13
|
-
- write_file
|
|
14
|
-
- edit_file
|
|
15
|
-
- list_dir
|
|
16
|
-
- skill_create
|
|
17
|
-
---
|
|
18
|
-
|
|
19
|
-
# Skill Creator
|
|
20
|
-
|
|
21
|
-
Write a skill that another model instance will actually reach for at the right
|
|
22
|
-
moment. Most bad skills are not badly written; they are badly *described* and
|
|
23
|
-
badly *scoped*.
|
|
24
|
-
|
|
25
|
-
## When to use
|
|
26
|
-
|
|
27
|
-
- The user says "remember how to do this", "save this as a skill", or similar.
|
|
28
|
-
- You have worked out a non-obvious, repeatable procedure and expect to need it
|
|
29
|
-
again.
|
|
30
|
-
- You notice you have rediscovered the same steps twice in one session.
|
|
31
|
-
|
|
32
|
-
Do **not** create a skill for a one-off task, for something the tools already do
|
|
33
|
-
directly, or for general knowledge the model already has.
|
|
34
|
-
|
|
35
|
-
## The one rule that matters most
|
|
36
|
-
|
|
37
|
-
`description` is the only text a future model sees before deciding whether to
|
|
38
|
-
load your skill. Everything else is invisible until then. So it must answer two
|
|
39
|
-
questions in one or two sentences:
|
|
40
|
-
|
|
41
|
-
1. **What does this do?**
|
|
42
|
-
2. **When should it be used?** — in the words a user would actually type.
|
|
43
|
-
|
|
44
|
-
Compare:
|
|
45
|
-
|
|
46
|
-
- Weak: `Helps with PDFs.`
|
|
47
|
-
- Strong: `Fill, flatten and validate AcroForm PDFs. Use when the task mentions
|
|
48
|
-
PDF forms, field filling, or flattening a fillable PDF.`
|
|
49
|
-
|
|
50
|
-
The second one will be picked up on a task that says "flatten this fillable
|
|
51
|
-
invoice". The first one will not.
|
|
52
|
-
|
|
53
|
-
## Writing the body
|
|
54
|
-
|
|
55
|
-
- Use imperative steps, not background prose. The reader is an agent about to
|
|
56
|
-
act, not a student.
|
|
57
|
-
- Keep the body under about 5 000 characters. It is loaded whole, every time the
|
|
58
|
-
skill is used, so length is a recurring cost paid by every future run.
|
|
59
|
-
- Push long reference material into `reference/*.md` and executable steps into
|
|
60
|
-
`scripts/*`. Those are NOT preloaded — the model reads them on demand with
|
|
61
|
-
`read_file` or runs them with `bash`. That is the whole point of the three
|
|
62
|
-
levels, and it is what makes fifty installed skills cost a few thousand
|
|
63
|
-
characters instead of hundreds of thousands.
|
|
64
|
-
- Say what "done" looks like, and what to do when a step fails.
|
|
65
|
-
|
|
66
|
-
## Things that do not belong in a skill
|
|
67
|
-
|
|
68
|
-
- Hostnames, IP addresses, repository URLs, absolute paths from your machine.
|
|
69
|
-
- API keys, tokens, or anything else secret. Skills are plain files that get
|
|
70
|
-
copied between machines and committed to repositories.
|
|
71
|
-
- Anything that only made sense in the conversation you are in right now.
|
|
72
|
-
|
|
73
|
-
## Steps
|
|
74
|
-
|
|
75
|
-
1. Confirm the scope with the user in one sentence: what the skill does and when
|
|
76
|
-
it fires.
|
|
77
|
-
2. Draft the `description` first and read it back critically. Would a model
|
|
78
|
-
with only that line pick this skill for the task you have in mind?
|
|
79
|
-
3. Write the body as numbered imperative steps.
|
|
80
|
-
4. Split anything long or reusable into `reference/` and `scripts/` entries and
|
|
81
|
-
pass them as `files`.
|
|
82
|
-
5. Call `skill_create` with `name`, `description`, `body`, and any `files`.
|
|
83
|
-
6. Immediately call `skill(name="<your-new-skill>")` to read back what you
|
|
84
|
-
actually wrote. This catches truncated bodies and mangled frontmatter while
|
|
85
|
-
you can still fix them.
|
|
86
|
-
|
|
87
|
-
## Naming
|
|
88
|
-
|
|
89
|
-
Lowercase kebab-case, at most 64 characters: `pdf-forms`, `release-notes`,
|
|
90
|
-
`db-migration-review`. The name becomes a slash command (`/pdf-forms`), so it
|
|
91
|
-
should read as a thing, not as a sentence.
|
|
92
|
-
|
|
93
|
-
If the name collides with a built-in command, the built-in wins and your skill
|
|
94
|
-
is reachable as `/skill:<name>` instead — so avoid `help`, `model`, `settings`,
|
|
95
|
-
`tools`, `clear`, `reset`, `cwd`, `save`, `resume`, `copy`, `theme`, `thinking`,
|
|
96
|
-
`expand`, `skills`, `exit` and `quit`.
|
|
1
|
+
---
|
|
2
|
+
name: skill-creator
|
|
3
|
+
description: Author a new AragonAgent skill. Use when the user asks to save a procedure as a skill, or when you notice you have re-derived the same multi-step process twice in a session.
|
|
4
|
+
version: 1.1.0
|
|
5
|
+
license: MIT
|
|
6
|
+
activation: auto
|
|
7
|
+
keywords: [meta, authoring, skills]
|
|
8
|
+
# Enforced as a per-turn tool ceiling. `edit_file` is here because revising an
|
|
9
|
+
# existing skill is the single most common thing this skill is asked to do —
|
|
10
|
+
# without it, "fix the description on my deploy skill" fails on the first edit.
|
|
11
|
+
allowed-tools:
|
|
12
|
+
- read_file
|
|
13
|
+
- write_file
|
|
14
|
+
- edit_file
|
|
15
|
+
- list_dir
|
|
16
|
+
- skill_create
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
# Skill Creator
|
|
20
|
+
|
|
21
|
+
Write a skill that another model instance will actually reach for at the right
|
|
22
|
+
moment. Most bad skills are not badly written; they are badly *described* and
|
|
23
|
+
badly *scoped*.
|
|
24
|
+
|
|
25
|
+
## When to use
|
|
26
|
+
|
|
27
|
+
- The user says "remember how to do this", "save this as a skill", or similar.
|
|
28
|
+
- You have worked out a non-obvious, repeatable procedure and expect to need it
|
|
29
|
+
again.
|
|
30
|
+
- You notice you have rediscovered the same steps twice in one session.
|
|
31
|
+
|
|
32
|
+
Do **not** create a skill for a one-off task, for something the tools already do
|
|
33
|
+
directly, or for general knowledge the model already has.
|
|
34
|
+
|
|
35
|
+
## The one rule that matters most
|
|
36
|
+
|
|
37
|
+
`description` is the only text a future model sees before deciding whether to
|
|
38
|
+
load your skill. Everything else is invisible until then. So it must answer two
|
|
39
|
+
questions in one or two sentences:
|
|
40
|
+
|
|
41
|
+
1. **What does this do?**
|
|
42
|
+
2. **When should it be used?** — in the words a user would actually type.
|
|
43
|
+
|
|
44
|
+
Compare:
|
|
45
|
+
|
|
46
|
+
- Weak: `Helps with PDFs.`
|
|
47
|
+
- Strong: `Fill, flatten and validate AcroForm PDFs. Use when the task mentions
|
|
48
|
+
PDF forms, field filling, or flattening a fillable PDF.`
|
|
49
|
+
|
|
50
|
+
The second one will be picked up on a task that says "flatten this fillable
|
|
51
|
+
invoice". The first one will not.
|
|
52
|
+
|
|
53
|
+
## Writing the body
|
|
54
|
+
|
|
55
|
+
- Use imperative steps, not background prose. The reader is an agent about to
|
|
56
|
+
act, not a student.
|
|
57
|
+
- Keep the body under about 5 000 characters. It is loaded whole, every time the
|
|
58
|
+
skill is used, so length is a recurring cost paid by every future run.
|
|
59
|
+
- Push long reference material into `reference/*.md` and executable steps into
|
|
60
|
+
`scripts/*`. Those are NOT preloaded — the model reads them on demand with
|
|
61
|
+
`read_file` or runs them with `bash`. That is the whole point of the three
|
|
62
|
+
levels, and it is what makes fifty installed skills cost a few thousand
|
|
63
|
+
characters instead of hundreds of thousands.
|
|
64
|
+
- Say what "done" looks like, and what to do when a step fails.
|
|
65
|
+
|
|
66
|
+
## Things that do not belong in a skill
|
|
67
|
+
|
|
68
|
+
- Hostnames, IP addresses, repository URLs, absolute paths from your machine.
|
|
69
|
+
- API keys, tokens, or anything else secret. Skills are plain files that get
|
|
70
|
+
copied between machines and committed to repositories.
|
|
71
|
+
- Anything that only made sense in the conversation you are in right now.
|
|
72
|
+
|
|
73
|
+
## Steps
|
|
74
|
+
|
|
75
|
+
1. Confirm the scope with the user in one sentence: what the skill does and when
|
|
76
|
+
it fires.
|
|
77
|
+
2. Draft the `description` first and read it back critically. Would a model
|
|
78
|
+
with only that line pick this skill for the task you have in mind?
|
|
79
|
+
3. Write the body as numbered imperative steps.
|
|
80
|
+
4. Split anything long or reusable into `reference/` and `scripts/` entries and
|
|
81
|
+
pass them as `files`.
|
|
82
|
+
5. Call `skill_create` with `name`, `description`, `body`, and any `files`.
|
|
83
|
+
6. Immediately call `skill(name="<your-new-skill>")` to read back what you
|
|
84
|
+
actually wrote. This catches truncated bodies and mangled frontmatter while
|
|
85
|
+
you can still fix them.
|
|
86
|
+
|
|
87
|
+
## Naming
|
|
88
|
+
|
|
89
|
+
Lowercase kebab-case, at most 64 characters: `pdf-forms`, `release-notes`,
|
|
90
|
+
`db-migration-review`. The name becomes a slash command (`/pdf-forms`), so it
|
|
91
|
+
should read as a thing, not as a sentence.
|
|
92
|
+
|
|
93
|
+
If the name collides with a built-in command, the built-in wins and your skill
|
|
94
|
+
is reachable as `/skill:<name>` instead — so avoid `help`, `model`, `settings`,
|
|
95
|
+
`tools`, `clear`, `reset`, `cwd`, `save`, `resume`, `copy`, `theme`, `thinking`,
|
|
96
|
+
`expand`, `skills`, `exit` and `quit`.
|