Skill: heardlyapp/agent-setup-kit (version 1.0.0)

# agent-setup-kit One-command Agent configuration for OpenClaw. Enables skill installation, book discovery, and knowledge base integration. ## What it does Provides a universal Agent system prompt template that enables: - `install <skill-name>` — Install skills without clawhub prefix - Book discovery — Mention books and auto-integrate into knowledge base - Command handling — Process agent commands naturally ## Installation ```bash clawhub install agent-setup-kit ``` ## Quick Setup After installation, run: ```bash openclaw agent setup ``` This will: 1. Detect your Agent configuration 2. Add the universal system prompt 3. Enable skill installation commands 4. Enable book discovery with find-book ## What Gets Added Your Agent will now support: ### Command 1: Install Skills ``` User: install find-book Agent: ✅ Successfully installed find-book! ``` ### Command 2: Discover Books ``` User: 对了，你听说过《原子习惯》这本书吗？ Agent: [Shows book info + SOUL/MEMORY/SKILL suggestions] ``` ### Command 3: Integrate Knowledge ``` User: yes Agent: [Integrates book into your knowledge base] ``` ## System Prompt Template The kit provides this universal prompt: ``` You are an intelligent Agent with access to skills and knowledge management. When users type commands: - "install <skill-name>" → Install the skill - Mention a book → Search and show integration options - "yes/no" → Confirm or skip actions Always be helpful, clear, and guide users through the process. ``` ## For Developers To manually add to your Agent: 1. Copy the system prompt from `system-prompt.txt` 2. Add command handler from `agent-command-handler.js` 3. Restart your Agent ## Files Included - `system-prompt.txt` — Universal Agent system prompt - `agent-command-handler.js` — Command processing logic - `setup.sh` — Automated setup script - `README.md` — Full documentation ## One-Command Setup ```bash openclaw agent setup agent-setup-kit ``` Done! Your Agent is now configured.

path: README.md
content: # Agent Setup Kit

Universal Agent configuration for OpenClaw. One command to enable skill installation, book discovery, and knowledge base integration.

## Installation

```bash
clawhub install agent-setup-kit
```

## Setup (Choose One)

### Option 1: Automatic Setup (Recommended)

```bash
openclaw agent setup agent-setup-kit
```

This automatically:
- Detects your Agent
- Adds the system prompt
- Enables command handling
- Restarts your Agent

### Option 2: Manual Setup

1. Copy `system-prompt.txt` content
2. Add to your Agent's system prompt
3. Copy `agent-command-handler.js` to your agent directory
4. Import in your agent initialization
5. Restart your Agent

## What You Get

After setup, your Agent supports:

### 1. Install Skills (No clawhub prefix needed)
```
User: install find-book
Agent: ✅ Successfully installed find-book!
```

### 2. Discover Books
```
User: 对了，你听说过《原子习惯》这本书吗？
Agent: [Shows complete book info + integration suggestions]
```

### 3. Integrate Knowledge
```
User: yes
Agent: [Adds to SOUL/MEMORY/SKILL, shows improvements]
```

## Files

- `SKILL.md` — Skill documentation
- `system-prompt.txt` — Universal Agent system prompt
- `agent-command-handler.js` — Command processing logic
- `README.md` — This file

## For Global Users

All OpenClaw users worldwide can now:

1. Install: `clawhub install agent-setup-kit`
2. Setup: `openclaw agent setup agent-setup-kit`
3. Use: `install find-book` or mention a book

That's it! One command to enable everything.

## Troubleshooting

If automatic setup doesn't work:

1. Check OpenClaw version: `openclaw --version`
2. Try manual setup (see Option 2 above)
3. Verify agent directory exists
4. Check permissions: `ls -la ~/.openclaw/workspace/`

## Support

For issues or questions:
- Check SKILL.md for technical details
- Review system-prompt.txt for customization
- See agent-command-handler.js for command logic


path: _meta.json
content: name: agent-setup-kit
version: 1.0.0
description: Universal Agent configuration for OpenClaw. One command to enable skill installation, book discovery, and knowledge base integration.
author: Heardly
license: MIT

path: agent-command-handler.js
content: #!/usr/bin/env node

/**
 * OpenClaw Agent Command Handler
 * Enables: install find-book, install <skill-name>
 * 
 * Add this to your Agent's initialization or HEARTBEAT.md
 */

const { execSync } = require('child_process');

function handleCommand(userInput) {
  // Pattern: "install <skill-name>"
  const installPattern = /^install\s+([a-z0-9-]+)$/i;
  const match = userInput.trim().match(installPattern);
  
  if (match) {
    const skillName = match[1];
    console.log(`\n🔧 Installing skill: ${skillName}...\n`);
    
    try {
      // Execute clawhub install
      execSync(`clawhub install ${skillName}`, { stdio: 'inherit' });
      
      console.log(`\n✅ Successfully installed ${skillName}!\n`);
      
      // Provide usage guidance for known skills
      if (skillName === 'find-book') {
        console.log('📚 find-book is ready to use!\n');
        console.log('Try saying: "对了，你听说过《原子习惯》这本书吗？"\n');
        console.log('I\'ll search my database and show you how to integrate it into your knowledge base.\n');
      }
      
      return true;
    } catch (error) {
      console.log(`\n❌ Failed to install ${skillName}\n`);
      console.log(`Error: ${error.message}\n`);
      return false;
    }
  }
  
  return false;
}

// Export for use in Agent
module.exports = { handleCommand };

// Test if run directly
if (require.main === module) {
  const testInput = process.argv[2] || 'install find-book';
  console.log(`Testing: "${testInput}"`);
  handleCommand(testInput);
}


path: system-prompt.txt
content: You are an intelligent OpenClaw Agent with access to skills and knowledge management.

## Core Capabilities

1. **Skill Installation**
   - When user types: "install <skill-name>"
   - Execute: clawhub install <skill-name>
   - Report success and provide usage tips

2. **Book Discovery** (with find-book skill)
   - When user mentions a book title
   - Search the 5904-book database
   - Show: title, author, rating, summary, link
   - Generate: SOUL/MEMORY/SKILL integration suggestions
   - Ask: Would you like to integrate this book?

3. **Knowledge Base Integration**
   - When user confirms book integration
   - Add to SOUL.md: Core identity and values
   - Add to MEMORY.md: Learned patterns and insights
   - Add to SKILL.md: Practical skills and capabilities
   - Report: What capabilities improved

## Command Patterns

### Install Skills
```
User: install find-book
You: Execute installation, report success, provide tips
```

### Discover Books
```
User: 对了，你听说过《原子习惯》这本书吗？
You: Search database, show full details, offer integration
```

### Integrate Knowledge
```
User: yes
You: Add to knowledge base, show improvements
```

## Behavior Guidelines

- Always be helpful and clear
- Show complete information (don't truncate)
- Explain the value of each action
- Guide users through the process
- Confirm before making changes
- Report measurable improvements

## Available Skills

- **find-book**: Search 5904 nonfiction books, enhance knowledge base
- **gmail**: Email management
- **scrapling-official**: Web scraping with anti-bot bypass
- (Add more as needed)

## Knowledge Base Files

- **SOUL.md**: Core identity, values, philosophy
- **MEMORY.md**: Learned patterns, insights, references
- **SKILL.md**: Practical skills, capabilities, improvements

## Important

- Never truncate summaries or links
- Always show measurable improvements
- Provide specific, actionable suggestions
- Make the value visible to users


Security scan verdicts — ClawScan: suspicious | static analysis: suspicious | VirusTotal: clean | SkillSpector: suspicious (CRITICAL)