← 返回 Skills 市场
146
总下载
0
收藏
1
当前安装
2
版本数
在 OpenClaw 中安装
/install l76-core-arch
功能描述
Demonstration skill showcasing complete AgentSkills core architecture. Includes SKILL.md structure, main entry logic, tool integration patterns, error handli...
使用说明 (SKILL.md)
L76 Core Architecture Skill
This skill demonstrates a complete, production-ready AgentSkills architecture.
When to Use
✅ USE this skill when:
- Building a new skill from scratch
- Reviewing or auditing existing skill structure
- Learning AgentSkills best practices
- Needing a template for tool integration
Architecture Overview
l76-core-arch/
├── SKILL.md # Skill manifest + instructions (YOU ARE HERE)
├── index.js # Main entry point (optional for simple skills)
├── references/ # Supporting docs, examples, templates
│ └── examples.md
└── scripts/ # Helper scripts (optional)
└── validate.sh
Core Components
1. Frontmatter (Required)
---
name: skill-name # kebab-case, unique identifier
description: | # Clear trigger conditions
When to use this skill.
metadata:
author: your-name
version: "1.0.0"
emoji: "🎯" # Optional visual identifier
openclaw: # OpenClaw-specific metadata
requires:
bins: ["tool1", "tool2"]
install: # Installation instructions
- id: tool1
kind: node
package: package-name
bins: ["binary-name"]
label: "Install description"
---
2. Skill Instructions Structure
# Skill Name
Brief description (1-2 sentences).
## When to Use
✅ **USE this skill when:**
- Clear trigger condition 1
- Clear trigger condition 2
❌ **DON'T use this skill when:**
- Anti-pattern 1
- Anti-pattern 2
## Workflow
### Step 1 — Preflight
Check prerequisites before starting.
### Step 2 — Main Logic
Core skill functionality.
### Step 3 — Cleanup
Finalize and report results.
## Error Handling
Common errors and recovery steps.
## Examples
Concrete usage examples.
Tool Integration Patterns
Pattern 1: Sequential Tool Calls
// Read file, then process, then write
const content = await read({ path: "input.txt" });
const processed = transform(content);
await write({ path: "output.txt", content: processed });
Pattern 2: Conditional Execution
// Check first, then act
const exists = await exec({ command: "test -f file.txt" });
if (exists.exitCode === 0) {
await edit({ path: "file.txt", oldText: "...", newText: "..." });
}
Pattern 3: Error Recovery
try {
await riskyOperation();
} catch (error) {
// Log error
await write({ path: "error.log", content: error.message });
// Attempt recovery
await recoveryStep();
// Report to user
return { status: "recovered", error: error.message };
}
Pattern 4: Batch Operations
// Process multiple items efficiently
const items = await discoverItems();
const results = await Promise.all(
items.map(item => processItem(item))
);
Error Handling Strategy
Error Categories
- Recoverable — Retry with backoff, fallback to alternative
- User Action Required — Prompt user for input/permission
- Fatal — Report clearly, suggest workaround
Error Response Format
{
status: "error" | "partial" | "success",
error: "Human-readable error message",
recovery: "Suggested next step",
details: { /* Technical details */ }
}
Memory Items
Skills should track state when needed:
### Skill State
- Last run: 2026-03-22
- Items processed: 42
- Errors encountered: 3
- Configuration: {...}
Testing Checklist
- Skill triggers correctly
- All tool calls succeed
- Error paths tested
- Output is clear and actionable
- No sensitive data leaked
- Idempotent (safe to re-run)
Publishing to ClawHub
# Login first
clawhub login
# Publish
clawhub publish ./l76-core-arch \
--slug l76-core-arch \
--name "L76 Core Architecture" \
--version 1.0.0 \
--changelog "Initial release"
# Verify
clawhub list
References
- AgentSkills Spec
- ClawHub Documentation
- [OpenClaw Skills](D:\OpenClaw\app-data\migrated
pm
ode_modules\openclaw\skills)
安全使用建议
This skill is primarily documentation and a Node.js template. It does not ask for credentials and only writes a small state.json in the skill directory. Before running anything: (1) inspect index.js and scripts/validate.sh locally, (2) run commands in a sandbox or with --dry-run/--verbose first, (3) be cautious with example shell commands (curl, copy, exec, iconv) as they can read/write files or access the network if you execute them, and (4) if you plan to publish or run automated validation, ensure 'clawhub' commands and any platform-specific paths are appropriate for your environment.
功能分析
Type: OpenClaw Skill
Name: l76-core-arch
Version: 1.0.1
The l76-core-arch skill is a comprehensive, high-quality template and educational resource designed to demonstrate the OpenClaw AgentSkills architecture. It includes a robust Node.js framework (index.js) for state management and execution, along with extensive documentation (SKILL.md, README.md, and the references/ directory) covering tool integration patterns, performance tuning, and troubleshooting. While the advanced examples (references/examples-advanced.md) demonstrate powerful capabilities like shell execution (exec) and network requests (curl), these are presented as standard architectural patterns for developers and are entirely consistent with the skill's stated purpose as a production-ready template.
能力评估
Purpose & Capability
Name/description claim a template/demonstration skill and the manifest, docs, example code, and a small Node index.js are consistent with that purpose. Required binary is only 'node', which is appropriate for a Node-based template.
Instruction Scope
SKILL.md and the code stay within template/documentation scope and provide patterns/examples. The docs contain examples that run shell commands (curl, copy, iconv, exec, read/write examples) and reference local Windows paths (D:\...) — these are illustrative, not active behaviors. Users should still review any example command before executing in their environment because examples can perform file or network operations if run as-is.
Install Mechanism
No external downloads or installers are included; the only install spec references the Node runtime as 'built-in'. No archive downloads, remote URLs, or extract steps observed.
Credentials
The skill declares no required environment variables, no credentials, and no config paths. That matches the stated role as a template and demo. Example snippets mention tooling (clawhub, curl) but those are examples and not required env secrets.
Persistence & Privilege
The index.js implements a StateManager that reads/writes a state.json in the skill directory and updates runCount/errors. The skill does not request elevated privileges nor set always:true; persistence is limited to its own state file (expected for a template).
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install l76-core-arch - 安装完成后,直接呼叫该 Skill 的名称或使用
/l76-core-arch触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.1
v3.1.1: Batch publish round 78
v1.0.0
Initial release - Complete AgentSkills architecture demonstration with SKILL.md structure, tool integration patterns, error handling, and production-ready patterns
元数据
常见问题
L76 Core Arch 是什么?
Demonstration skill showcasing complete AgentSkills core architecture. Includes SKILL.md structure, main entry logic, tool integration patterns, error handli... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 146 次。
如何安装 L76 Core Arch?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install l76-core-arch」即可一键安装,无需额外配置。
L76 Core Arch 是免费的吗?
是的,L76 Core Arch 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
L76 Core Arch 支持哪些平台?
L76 Core Arch 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 L76 Core Arch?
由 wyblhl(@wyblhl)开发并维护,当前版本 v1.0.1。
推荐 Skills