@action-llama/skill 0.23.8 → 0.24.2
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/.claude-plugin/plugin.json +14 -0
- package/dist/build-docs.d.ts +32 -0
- package/dist/build-docs.d.ts.map +1 -0
- package/dist/build-docs.js +127 -0
- package/dist/build-docs.js.map +1 -0
- package/dist/index.d.ts +7 -7
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +9 -15
- package/dist/index.js.map +1 -1
- package/package.json +9 -6
- package/skills/al/SKILL.md +25 -0
- package/skills/al/agent-authoring.md +1436 -0
- package/skills/al/debugging.md +1075 -0
- package/skills/al/operations.md +1918 -0
- package/{content/commands/debug.md → skills/debug/SKILL.md} +12 -3
- package/{content/commands/iterate.md → skills/iterate/SKILL.md} +6 -0
- package/skills/new-agent/SKILL.md +36 -0
- package/{content/commands/run.md → skills/run/SKILL.md} +6 -0
- package/{content/commands/status.md → skills/status/SKILL.md} +5 -0
- package/content/AGENTS.md +0 -1128
- package/content/commands/new-agent.md +0 -24
- /package/{content/mcp.json → .mcp.json} +0 -0
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "al",
|
|
3
|
+
"description": "Action Llama — CLI tool for running LLM agents as scripts. Create, run, debug, and manage autonomous agents triggered by cron schedules and webhooks.",
|
|
4
|
+
"version": "0.23.8",
|
|
5
|
+
"author": {
|
|
6
|
+
"name": "Action Llama"
|
|
7
|
+
},
|
|
8
|
+
"homepage": "https://docs.actionllama.org",
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "https://github.com/Action-Llama/action-llama"
|
|
12
|
+
},
|
|
13
|
+
"license": "MIT"
|
|
14
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Build script that generates skill supporting files from the docs package.
|
|
3
|
+
*
|
|
4
|
+
* Reads docs.json for navigation structure, reads MDX source files,
|
|
5
|
+
* strips Mintlify components, and concatenates them into skill
|
|
6
|
+
* supporting files grouped by topic.
|
|
7
|
+
*
|
|
8
|
+
* Usage: node --import tsx/esm src/build-docs.ts
|
|
9
|
+
*/
|
|
10
|
+
/** Mapping of output filename → list of doc page paths (relative to docs dir, no extension). */
|
|
11
|
+
export declare const DOC_MAPPING: Record<string, string[]>;
|
|
12
|
+
/** Extract title from YAML frontmatter. */
|
|
13
|
+
export declare function extractTitle(content: string): string | null;
|
|
14
|
+
/** Strip YAML frontmatter from MDX content. */
|
|
15
|
+
export declare function stripFrontmatter(content: string): string;
|
|
16
|
+
/**
|
|
17
|
+
* Strip Mintlify JSX components, keeping their text content.
|
|
18
|
+
* Handles: <Info>, <Note>, <Warning>, <Tip>, <CardGroup>, <Card>, <Steps>, <Step>, etc.
|
|
19
|
+
*/
|
|
20
|
+
export declare function stripMintlifyComponents(content: string): string;
|
|
21
|
+
/** Process a single MDX file into clean markdown. */
|
|
22
|
+
export declare function processMdxFile(content: string): {
|
|
23
|
+
title: string | null;
|
|
24
|
+
body: string;
|
|
25
|
+
};
|
|
26
|
+
/** Read and process a doc page, returning formatted markdown section. */
|
|
27
|
+
export declare function processDocPage(docsDir: string, pagePath: string): string;
|
|
28
|
+
/** Build a single output file from a list of doc pages. */
|
|
29
|
+
export declare function buildOutputFile(docsDir: string, pages: string[]): string;
|
|
30
|
+
/** Build all output files from the mapping. */
|
|
31
|
+
export declare function buildAll(docsDir: string, outputDir: string): void;
|
|
32
|
+
//# sourceMappingURL=build-docs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"build-docs.d.ts","sourceRoot":"","sources":["../src/build-docs.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAUH,gGAAgG;AAChG,eAAO,MAAM,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAsChD,CAAC;AAEF,2CAA2C;AAC3C,wBAAgB,YAAY,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAK3D;AAED,+CAA+C;AAC/C,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAExD;AAED;;;GAGG;AACH,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAa/D;AAED,qDAAqD;AACrD,wBAAgB,cAAc,CAAC,OAAO,EAAE,MAAM,GAAG;IAAE,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAKtF;AAED,yEAAyE;AACzE,wBAAgB,cAAc,CAAC,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,CAWxE;AAED,2DAA2D;AAC3D,wBAAgB,eAAe,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,MAAM,CAGxE;AAED,+CAA+C;AAC/C,wBAAgB,QAAQ,CAAC,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,IAAI,CAMjE"}
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Build script that generates skill supporting files from the docs package.
|
|
3
|
+
*
|
|
4
|
+
* Reads docs.json for navigation structure, reads MDX source files,
|
|
5
|
+
* strips Mintlify components, and concatenates them into skill
|
|
6
|
+
* supporting files grouped by topic.
|
|
7
|
+
*
|
|
8
|
+
* Usage: node --import tsx/esm src/build-docs.ts
|
|
9
|
+
*/
|
|
10
|
+
import { readFileSync, writeFileSync, mkdirSync, existsSync } from "fs";
|
|
11
|
+
import { resolve, dirname } from "path";
|
|
12
|
+
import { fileURLToPath } from "url";
|
|
13
|
+
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
14
|
+
const DOCS_DIR = resolve(__dirname, "..", "..", "docs");
|
|
15
|
+
const SKILLS_DIR = resolve(__dirname, "..", "skills", "al");
|
|
16
|
+
/** Mapping of output filename → list of doc page paths (relative to docs dir, no extension). */
|
|
17
|
+
export const DOC_MAPPING = {
|
|
18
|
+
"agent-authoring.md": [
|
|
19
|
+
"concepts/agents",
|
|
20
|
+
"reference/agent-config",
|
|
21
|
+
"reference/agent-docs",
|
|
22
|
+
"reference/credentials",
|
|
23
|
+
"reference/models",
|
|
24
|
+
"reference/webhooks",
|
|
25
|
+
"reference/webhooks/github",
|
|
26
|
+
"reference/webhooks/sentry",
|
|
27
|
+
"reference/webhooks/linear",
|
|
28
|
+
"reference/webhooks/mintlify",
|
|
29
|
+
"reference/webhooks/slack",
|
|
30
|
+
"reference/webhooks/twitter",
|
|
31
|
+
],
|
|
32
|
+
"operations.md": [
|
|
33
|
+
"first-steps/getting-started",
|
|
34
|
+
"first-steps/using-webhooks",
|
|
35
|
+
"reference/cli-commands",
|
|
36
|
+
"reference/project-config",
|
|
37
|
+
"concepts/scheduler",
|
|
38
|
+
"reference/dockerfiles",
|
|
39
|
+
"guides/deploying-to-vps",
|
|
40
|
+
"guides/cloud-run-runtime",
|
|
41
|
+
"guides/continuous-deployment",
|
|
42
|
+
"guides/custom-dockerfiles",
|
|
43
|
+
"reference/gateway-api",
|
|
44
|
+
"reference/web-dashboard",
|
|
45
|
+
],
|
|
46
|
+
"debugging.md": [
|
|
47
|
+
"reference/agent-commands",
|
|
48
|
+
"concepts/runtime-context",
|
|
49
|
+
"concepts/resource-locks",
|
|
50
|
+
"guides/dynamic-context",
|
|
51
|
+
"guides/shared-context",
|
|
52
|
+
"guides/subagents",
|
|
53
|
+
"guides/scaling-agents",
|
|
54
|
+
],
|
|
55
|
+
};
|
|
56
|
+
/** Extract title from YAML frontmatter. */
|
|
57
|
+
export function extractTitle(content) {
|
|
58
|
+
const match = content.match(/^---\n([\s\S]*?)\n---/);
|
|
59
|
+
if (!match)
|
|
60
|
+
return null;
|
|
61
|
+
const titleMatch = match[1].match(/^title:\s*"?([^"\n]+)"?\s*$/m);
|
|
62
|
+
return titleMatch ? titleMatch[1] : null;
|
|
63
|
+
}
|
|
64
|
+
/** Strip YAML frontmatter from MDX content. */
|
|
65
|
+
export function stripFrontmatter(content) {
|
|
66
|
+
return content.replace(/^---\n[\s\S]*?\n---\n*/, "");
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Strip Mintlify JSX components, keeping their text content.
|
|
70
|
+
* Handles: <Info>, <Note>, <Warning>, <Tip>, <CardGroup>, <Card>, <Steps>, <Step>, etc.
|
|
71
|
+
*/
|
|
72
|
+
export function stripMintlifyComponents(content) {
|
|
73
|
+
// Remove self-closing tags: <Card ... />
|
|
74
|
+
let result = content.replace(/<\w+\s+[^>]*\/>/g, "");
|
|
75
|
+
// Remove opening and closing tags, keeping inner content
|
|
76
|
+
// Handles both single-line and multi-line: <Info>text</Info>
|
|
77
|
+
result = result.replace(/<(Info|Note|Warning|Tip|CardGroup|Card|Steps|Step|Accordion|AccordionGroup|Tab|Tabs|Frame|Snippet|Check|ResponseField|Expandable|ParamField)(\s[^>]*)?>/gi, "");
|
|
78
|
+
result = result.replace(/<\/(Info|Note|Warning|Tip|CardGroup|Card|Steps|Step|Accordion|AccordionGroup|Tab|Tabs|Frame|Snippet|Check|ResponseField|Expandable|ParamField)>/gi, "");
|
|
79
|
+
// Clean up excessive blank lines (3+ → 2)
|
|
80
|
+
result = result.replace(/\n{3,}/g, "\n\n");
|
|
81
|
+
return result;
|
|
82
|
+
}
|
|
83
|
+
/** Process a single MDX file into clean markdown. */
|
|
84
|
+
export function processMdxFile(content) {
|
|
85
|
+
const title = extractTitle(content);
|
|
86
|
+
let body = stripFrontmatter(content);
|
|
87
|
+
body = stripMintlifyComponents(body);
|
|
88
|
+
return { title, body: body.trim() };
|
|
89
|
+
}
|
|
90
|
+
/** Read and process a doc page, returning formatted markdown section. */
|
|
91
|
+
export function processDocPage(docsDir, pagePath) {
|
|
92
|
+
const filePath = resolve(docsDir, `${pagePath}.mdx`);
|
|
93
|
+
if (!existsSync(filePath)) {
|
|
94
|
+
throw new Error(`Doc file not found: ${filePath}`);
|
|
95
|
+
}
|
|
96
|
+
const raw = readFileSync(filePath, "utf-8");
|
|
97
|
+
const { title, body } = processMdxFile(raw);
|
|
98
|
+
// Wrap in a section with the title as H1
|
|
99
|
+
const heading = title ? `# ${title}` : `# ${pagePath.split("/").pop()}`;
|
|
100
|
+
return `${heading}\n\n${body}`;
|
|
101
|
+
}
|
|
102
|
+
/** Build a single output file from a list of doc pages. */
|
|
103
|
+
export function buildOutputFile(docsDir, pages) {
|
|
104
|
+
const sections = pages.map((page) => processDocPage(docsDir, page));
|
|
105
|
+
return sections.join("\n\n---\n\n") + "\n";
|
|
106
|
+
}
|
|
107
|
+
/** Build all output files from the mapping. */
|
|
108
|
+
export function buildAll(docsDir, outputDir) {
|
|
109
|
+
mkdirSync(outputDir, { recursive: true });
|
|
110
|
+
for (const [filename, pages] of Object.entries(DOC_MAPPING)) {
|
|
111
|
+
const content = buildOutputFile(docsDir, pages);
|
|
112
|
+
writeFileSync(resolve(outputDir, filename), content);
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
// CLI entry point
|
|
116
|
+
if (process.argv[1] && resolve(process.argv[1]) === resolve(fileURLToPath(import.meta.url))) {
|
|
117
|
+
const docsDir = process.argv[2] || DOCS_DIR;
|
|
118
|
+
const outputDir = process.argv[3] || SKILLS_DIR;
|
|
119
|
+
if (!existsSync(resolve(docsDir, "docs.json"))) {
|
|
120
|
+
console.error(`docs.json not found in ${docsDir}`);
|
|
121
|
+
process.exit(1);
|
|
122
|
+
}
|
|
123
|
+
buildAll(docsDir, outputDir);
|
|
124
|
+
const totalPages = Object.values(DOC_MAPPING).reduce((sum, pages) => sum + pages.length, 0);
|
|
125
|
+
console.log(`Built ${Object.keys(DOC_MAPPING).length} skill files from ${totalPages} doc pages → ${outputDir}`);
|
|
126
|
+
}
|
|
127
|
+
//# sourceMappingURL=build-docs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"build-docs.js","sourceRoot":"","sources":["../src/build-docs.ts"],"names":[],"mappings":"AAAA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IAAI,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,KAAK,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC;IAC5F,MAAM,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,QAAQ,CAAC;IAC5C,MAAM,SAAS,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,UAAU,CAAC;IAEhD,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,OAAO,EAAE,WAAW,CAAC,CAAC,EAAE,CAAC;QAC/C,OAAO,CAAC,KAAK,CAAC,0BAA0B,OAAO,EAAE,CAAC,CAAC;QACnD,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC;IAED,QAAQ,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC;IAE7B,MAAM,UAAU,GAAG,MAAM,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,KAAK,EAAE,EAAE,CAAC,GAAG,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;IAC5F,OAAO,CAAC,GAAG,CAAC,SAAS,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,MAAM,qBAAqB,UAAU,gBAAgB,SAAS,EAAE,CAAC,CAAC;AAClH,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
/** Absolute path to
|
|
2
|
-
export declare const
|
|
3
|
-
/** Absolute path to the
|
|
1
|
+
/** Absolute path to the plugin root (contains .claude-plugin/, skills/, .mcp.json). */
|
|
2
|
+
export declare const pluginDir: string;
|
|
3
|
+
/** Absolute path to the skills directory. */
|
|
4
|
+
export declare const skillsDir: string;
|
|
5
|
+
/** Absolute path to the MCP server config. */
|
|
4
6
|
export declare const mcpJsonPath: string;
|
|
5
|
-
/** Absolute path to the
|
|
6
|
-
export declare const
|
|
7
|
-
/** Map of command name → absolute file path for each Claude Code slash command. */
|
|
8
|
-
export declare const commandPaths: Record<string, string>;
|
|
7
|
+
/** Absolute path to the plugin manifest. */
|
|
8
|
+
export declare const pluginJsonPath: string;
|
|
9
9
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAMA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAMA,uFAAuF;AACvF,eAAO,MAAM,SAAS,QAAc,CAAC;AAErC,6CAA6C;AAC7C,eAAO,MAAM,SAAS,QAAiC,CAAC;AAExD,8CAA8C;AAC9C,eAAO,MAAM,WAAW,QAAoC,CAAC;AAE7D,4CAA4C;AAC5C,eAAO,MAAM,cAAc,QAAwD,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,19 +1,13 @@
|
|
|
1
1
|
import { resolve, dirname } from "path";
|
|
2
2
|
import { fileURLToPath } from "url";
|
|
3
3
|
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
4
|
-
const
|
|
5
|
-
/** Absolute path to
|
|
6
|
-
export const
|
|
7
|
-
/** Absolute path to the
|
|
8
|
-
export const
|
|
9
|
-
/** Absolute path to the
|
|
10
|
-
export const
|
|
11
|
-
/**
|
|
12
|
-
export const
|
|
13
|
-
"new-agent": resolve(commandsDir, "new-agent.md"),
|
|
14
|
-
"run": resolve(commandsDir, "run.md"),
|
|
15
|
-
"debug": resolve(commandsDir, "debug.md"),
|
|
16
|
-
"iterate": resolve(commandsDir, "iterate.md"),
|
|
17
|
-
"status": resolve(commandsDir, "status.md"),
|
|
18
|
-
};
|
|
4
|
+
const packageRoot = resolve(__dirname, "..");
|
|
5
|
+
/** Absolute path to the plugin root (contains .claude-plugin/, skills/, .mcp.json). */
|
|
6
|
+
export const pluginDir = packageRoot;
|
|
7
|
+
/** Absolute path to the skills directory. */
|
|
8
|
+
export const skillsDir = resolve(packageRoot, "skills");
|
|
9
|
+
/** Absolute path to the MCP server config. */
|
|
10
|
+
export const mcpJsonPath = resolve(packageRoot, ".mcp.json");
|
|
11
|
+
/** Absolute path to the plugin manifest. */
|
|
12
|
+
export const pluginJsonPath = resolve(packageRoot, ".claude-plugin", "plugin.json");
|
|
19
13
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AACxC,OAAO,EAAE,aAAa,EAAE,MAAM,KAAK,CAAC;AAEpC,MAAM,SAAS,GAAG,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;AAC1D,MAAM,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AACxC,OAAO,EAAE,aAAa,EAAE,MAAM,KAAK,CAAC;AAEpC,MAAM,SAAS,GAAG,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;AAC1D,MAAM,WAAW,GAAG,OAAO,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;AAE7C,uFAAuF;AACvF,MAAM,CAAC,MAAM,SAAS,GAAG,WAAW,CAAC;AAErC,6CAA6C;AAC7C,MAAM,CAAC,MAAM,SAAS,GAAG,OAAO,CAAC,WAAW,EAAE,QAAQ,CAAC,CAAC;AAExD,8CAA8C;AAC9C,MAAM,CAAC,MAAM,WAAW,GAAG,OAAO,CAAC,WAAW,EAAE,WAAW,CAAC,CAAC;AAE7D,4CAA4C;AAC5C,MAAM,CAAC,MAAM,cAAc,GAAG,OAAO,CAAC,WAAW,EAAE,gBAAgB,EAAE,aAAa,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@action-llama/skill",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.24.2",
|
|
4
|
+
"description": "Action Llama plugin for AI coding tools — skills, MCP config, and reference docs for creating, running, and debugging LLM agents.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -13,17 +13,20 @@
|
|
|
13
13
|
".": {
|
|
14
14
|
"types": "./dist/index.d.ts",
|
|
15
15
|
"default": "./dist/index.js"
|
|
16
|
-
}
|
|
17
|
-
"./content/*": "./content/*"
|
|
16
|
+
}
|
|
18
17
|
},
|
|
19
18
|
"files": [
|
|
20
19
|
"dist",
|
|
21
|
-
"
|
|
20
|
+
".claude-plugin",
|
|
21
|
+
"skills",
|
|
22
|
+
".mcp.json"
|
|
22
23
|
],
|
|
23
24
|
"publishConfig": {
|
|
24
25
|
"access": "public"
|
|
25
26
|
},
|
|
26
27
|
"scripts": {
|
|
27
|
-
"build": "tsc"
|
|
28
|
+
"build": "node --experimental-strip-types src/build-docs.ts && tsc",
|
|
29
|
+
"build:docs": "node --experimental-strip-types src/build-docs.ts",
|
|
30
|
+
"test": "vitest run --config vitest.config.ts"
|
|
28
31
|
}
|
|
29
32
|
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: al
|
|
3
|
+
description: Action Llama reference — agent authoring, CLI operations, and debugging. Loaded automatically when working with Action Llama projects.
|
|
4
|
+
user-invocable: false
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Action Llama Reference
|
|
8
|
+
|
|
9
|
+
Action Llama (`al`) is a CLI tool for running LLM agents as scripts, triggered by cron schedules and webhooks.
|
|
10
|
+
|
|
11
|
+
## When to use this reference
|
|
12
|
+
|
|
13
|
+
Load the relevant supporting file based on what you need:
|
|
14
|
+
|
|
15
|
+
- **[agent-authoring.md](agent-authoring.md)** — Creating and configuring agents: SKILL.md format, config.toml fields, credential types, model providers, webhook setup
|
|
16
|
+
- **[operations.md](operations.md)** — Running and deploying: CLI commands, project config, scheduler, Docker, VPS/cloud deployment, gateway API, dashboard
|
|
17
|
+
- **[debugging.md](debugging.md)** — Diagnosing issues: agent commands, exit codes, runtime context, resource locks, dynamic context, subagent calls, scaling
|
|
18
|
+
|
|
19
|
+
## Key concepts
|
|
20
|
+
|
|
21
|
+
- An **agent** is a directory under `agents/<name>/` containing `SKILL.md` (portable instructions) and `config.toml` (runtime config)
|
|
22
|
+
- A **skill** is the portable artifact (`SKILL.md` + optional `Dockerfile`) that can be shared and installed
|
|
23
|
+
- Config uses a 3-layer merge: `config.toml` (committed) → `.env.toml` (gitignored) → environment file (machine-level)
|
|
24
|
+
- Credentials live in `~/.action-llama/credentials/<type>/<instance>/<field>`
|
|
25
|
+
- The MCP server (`al mcp serve`) exposes tools: `al_run`, `al_start`, `al_stop`, `al_status`, `al_agents`, `al_logs`, `al_pause`, `al_resume`, `al_kill`
|