@hurshb50/setup-ubuntu 1.5.3 → 2.0.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/distribution/assets/skills/code-dependency-graph/SKILL.md +18 -0
- package/distribution/assets/skills/{design → design-api}/SKILL.md +2 -2
- package/distribution/assets/skills/explain-code/SKILL.md +18 -0
- package/distribution/assets/skills/rephrase-last-message/SKILL.md +18 -0
- package/distribution/assets/skills/{teach → teach-concept}/SKILL.md +2 -2
- package/distribution/setup-ubuntu.mjs +6 -2
- package/package.json +1 -1
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: code-dependency-graph
|
|
3
|
+
description: Trace what a selected code section uses and what uses it.
|
|
4
|
+
disable-model-invocation: true
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Code Dependency Graph
|
|
8
|
+
|
|
9
|
+
Trace dependencies for the selected code section.
|
|
10
|
+
|
|
11
|
+
## The graph
|
|
12
|
+
|
|
13
|
+
- Inspect the code and its references
|
|
14
|
+
- Show what the section depends on
|
|
15
|
+
- Show what depends on the section
|
|
16
|
+
- Use `A → B` to mean “B uses A”
|
|
17
|
+
- Show direct relationships, not guesses
|
|
18
|
+
- Mark dependencies outside the requested scope
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
---
|
|
2
|
-
name: design
|
|
2
|
+
name: design-api
|
|
3
3
|
description: Push an architecture forward. Interview me, fan out on widely varying designs, then build the API shape together.
|
|
4
4
|
disable-model-invocation: true
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
-
# Design
|
|
7
|
+
# Design API
|
|
8
8
|
|
|
9
9
|
Turn a vague idea into one API shape.
|
|
10
10
|
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: explain-code
|
|
3
|
+
description: Explain a selected code section to someone learning it.
|
|
4
|
+
disable-model-invocation: true
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Explain Code
|
|
8
|
+
|
|
9
|
+
Explain one selected section of code.
|
|
10
|
+
|
|
11
|
+
Assume no prior knowledge.
|
|
12
|
+
|
|
13
|
+
## The explanation
|
|
14
|
+
|
|
15
|
+
- Define technical terms before using them
|
|
16
|
+
- Explain purpose, inputs, output, and behavior
|
|
17
|
+
- Stay within the selected section
|
|
18
|
+
- Verify details against the code
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: rephrase-last-message
|
|
3
|
+
description: Rephrase the last agent message without changing its meaning.
|
|
4
|
+
disable-model-invocation: true
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Rephrase Last Message
|
|
8
|
+
|
|
9
|
+
Rephrase the last agent message.
|
|
10
|
+
|
|
11
|
+
## The rephrasing
|
|
12
|
+
|
|
13
|
+
- Assume no prior knowledge
|
|
14
|
+
- Define technical terms before using them
|
|
15
|
+
- Keep the original meaning and facts
|
|
16
|
+
- Keep necessary caveats and code references
|
|
17
|
+
- Add no new claims or suggestions
|
|
18
|
+
- Output only the rephrased message
|
|
@@ -11,7 +11,7 @@ import util from "util";
|
|
|
11
11
|
import childProcess from "child_process";
|
|
12
12
|
//#region package.json
|
|
13
13
|
var name = "@hurshb50/setup-ubuntu";
|
|
14
|
-
var version = "1.5.
|
|
14
|
+
var version = "1.5.3";
|
|
15
15
|
//#endregion
|
|
16
16
|
//#region source/modules/logger/logger.ts
|
|
17
17
|
var Logger = class Logger {
|
|
@@ -314,7 +314,11 @@ var AgentSkills = class {
|
|
|
314
314
|
task.start();
|
|
315
315
|
const destinationDirectoryPath = path.join(context.directories.home, ".agents", "skills");
|
|
316
316
|
const sourceDirectoryPath = path.join(context.directories.assets, "skills");
|
|
317
|
-
task.continue("
|
|
317
|
+
task.continue("Clear global skills directory");
|
|
318
|
+
await fs.rm(destinationDirectoryPath, {
|
|
319
|
+
recursive: true,
|
|
320
|
+
force: true
|
|
321
|
+
});
|
|
318
322
|
await fs.mkdir(destinationDirectoryPath, { recursive: true });
|
|
319
323
|
task.continue("Copy agent skills");
|
|
320
324
|
await fs.cp(sourceDirectoryPath, destinationDirectoryPath, {
|