clawflowbang
v1.1.0
Published
The ultimate CLI tool for Krab Ecosystem: Install skills, agents and automate cronjobs in one flow.
Downloads
436
Maintainers
Readme
🦞 ClawFlow
ClawFlow is a skill + cron installer for OpenClaw/OpenKrab ecosystem.
It installs skill bundles and wires cron jobs in one flow, providing both CLI automation and package management.
Features
- Package Management: Install skill bundles with one command from ClawHub or Git
- Cron Automation: Schedule and manage automated skill execution
- Fallback Installation: ClawHub registry first, Git clone fallback
- Cron Validation: Normalize and validate cron expressions
- CLI Interface: Fast command-line tool (
clawflow/cfh) - NPM Integration: Published as
clawflowbangpackage - Cross Platform: Node.js based with Windows/Linux/macOS support
Quick Start
Prerequisites
- Node.js 16+
- OpenClaw CLI (
openclaw) - ClawHub CLI (
clawhub) for registry access - Git (for fallback installation)
Installation
npm i -g clawflowbangVerify installation:
clawflow --versionInitial Setup
clawflow initInstall Your First Package
clawflow install trading-kitCheck status:
clawflow statusCore Commands
Package Management
clawflow install <package> # Install skill bundle
clawflow list [--available] [--npm] # List installed/available packages
clawflow search <query> [--no-npm] # Search packages
clawflow remove <package> # Remove installed packageCron Operations
clawflow cron-list # List all cron jobs
clawflow cron-add <skill> --schedule "*/5 * * * *" # Add new cron job
clawflow cron-edit <id> --every 15m --description "updated job" # Modify existing
clawflow cron-remove <id> # Remove cron jobCron Input Formats
Supported formats:
- Raw cron:
*/5 * * * * - Preset:
@hourly,@daily,@weekly,@monthly - Shorthand:
5m,every 15m,1h,2d
Examples
clawflow cron-add crypto-price --every 15m
clawflow cron-edit <job-id> --schedule "@daily"
clawflow cron-edit <job-id> --params '{"symbols":["BTC","ETH"]}'
clawflow cron-remove <job-id>Installation Flow
Skill Installation Strategy
- Primary: Try
clawhub installfrom registry - Fallback: Use
git clonewhen registry fails - Validation: Check
SKILL.mdexists and is valid
Git Fallback Metadata
Required fields in package metadata:
repositoryorrepoorgit- Git repository URL- Optional:
branch/tag/ref- Specific version
Configuration
Default Paths
- Skills directory:
~/.openclaw/workspace/skills - Cron jobs file:
~/.openclaw/cron/jobs.json
Custom Paths
Override defaults during installation:
clawflow install <package> \
--skills-path "<path-to-skills>" \
--cron-jobs "<path-to-jobs.json>"NPM Package Format
clawflow reads package metadata from npm packages using the clawflow field:
{
"name": "my-kit",
"version": "1.0.0",
"keywords": ["clawflow"],
"clawflow": {
"skills": [
{
"name": "crypto-price",
"version": "^1.0.0",
"source": "openclaw",
"repository": "https://github.com/owner/crypto-price-skill.git"
}
],
"crons": [
{
"skill": "crypto-price",
"schedule": "*/5 * * * *",
"params": { "symbols": ["BTC", "ETH"] }
}
]
}
}Tech Stack
- Node.js 16+ - Core runtime
- Commander.js - CLI framework
- Node-cron - Cron job management
- Axios - HTTP requests for registry
- Chalk + Gradient-string - Terminal styling
- Inquirer.js - Interactive prompts
- YAML - Configuration parsing
- Boxen - Beautiful terminal boxes
Project Structure
ClawFlowHub/
├── bin/
│ └── clawflowhub.js # CLI entry point
├── src/
│ ├── index.js # Main module
│ ├── commands/ # Command implementations
│ ├── utils/ # Utility functions
│ └── config/ # Configuration management
├── skills/ # Example skills
├── examples/ # Usage examples
├── docs/ # Documentation
├── tests/ # Test suite
├── package.json # NPM package config
├── image.png # Project banner
└── README.md # This fileDevelopment
Setup
git clone https://github.com/OpenKrab/ClawFlowHub.git
cd ClawFlowHub
npm installDevelopment Commands
npm run lint # Lint code
npm test # Run test suite
npm start # Run CLI locallyTesting
# Test basic functionality
clawflow --help
clawflow list --available
clawflow search cryptoOpenClaw Integration
ClawFlow integrates with OpenClaw ecosystem through:
- Skill Installation: Direct integration with OpenClaw skill system
- Cron Management: Uses OpenClaw's cron job infrastructure
- Registry Access: Leverages ClawHub for skill discovery
- Configuration: Respects OpenClaw's configuration patterns
Contributing
PRs are welcome! Please ensure:
- Code follows existing ESLint patterns
- Add tests for new functionality
- Update documentation as needed
- Test cross-platform compatibility
- Follow semantic versioning
License
MIT
Built for the Lobster Way 🦞
