home / skills / openclaw / skills / publisher

This skill auto-generates adoption-optimized READMEs and publishes Clawdbot skills to GitHub and ClawdHub with a single command.

npx playbooks add skill openclaw/skills --skill publisher

Review the files below or copy the command above to add this skill to your agents.

Files (4)
SKILL.md
4.5 KB
---
name: publisher
description: Make your skills easy to understand and impossible to ignore
---

# publisher

**Professional documentation and publishing for Clawdbot skills**

Generate adoption-optimized READMEs and publish to GitHub + ClawdHub with one command.

---

## ⚠️ Requirements

- bash
- `jq` (for JSON parsing)
- `gh` CLI (GitHub operations)
- `clawdhub` CLI (publishing)
- git

---

## πŸ“‹ What It Does

Automates the complete publishing workflow:

### Documentation Generation
1. Reads your SKILL.md to understand what the skill does
2. Generates 3 one-liner options using proven patterns
3. Creates a README following GitHub best practices:
   - Problem/solution upfront
   - Inverted pyramid structure
   - Emoji headers for scannability
   - Bold outcomes
   - Under 15% text highlighting
4. Updates SKILL.md frontmatter with chosen description

### Publishing
5. Creates GitHub repository (if doesn't exist)
6. Pushes code to GitHub
7. Publishes to ClawdHub with auto-detected version

---

## πŸš€ Installation

```bash
clawdhub install skill-publisher
```

---

## πŸ’‘ Usage

```bash
cd ~/clawd/skills/your-skill
skill-publisher
```

The script will:
1. Show 3 one-liner options (choose or write your own)
2. Generate README preview
3. Ask for approval
4. Publish to GitHub + ClawdHub

---

## 🎯 One-Liner Generation Patterns

The tool generates options using three proven patterns:

### Pattern A: Continuous Benefit
```
Keep [thing] [desired state] [timeframe]
```
Example: "Keep your Claude access token fresh 24/7"

### Pattern B: Elimination
```
[Do thing] without [pain point]
```
Example: "Build cross-device tools without hardcoding paths"

### Pattern C: Automation
```
Automatically [action] [thing] [when]
```
Example: "Automatically refresh tokens before they expire"

---

## πŸ“š README Structure Generated

Follows the framework from GitHub's documentation best practices:

### Essential Sections (above the fold)
- Title + subtitle
- **The problem:** (1 sentence)
- **This tool:** (1 sentence)
- πŸ“‹ Requirements
- ⚑ What It Does (outcome first, then features)
- πŸš€ Installation
- πŸ”§ How It Works (result first, then process)

### Optional Sections (collapsible)
- Configuration options
- Troubleshooting
- For Developers
- Implementation details

---

## πŸ”§ How It Works

### Phase 1: Analysis
- Reads SKILL.md frontmatter (if exists)
- Extracts key information: name, description, requirements
- Parses scripts for dependencies

### Phase 2: One-Liner Generation
Analyzes your SKILL.md description and generates 3 options:
- Pattern A: Continuous benefit format
- Pattern B: Pain point elimination format
- Pattern C: Automation format

Shows you all 3, lets you choose or write custom.

### Phase 3: README Generation
Uses the template from `~/clawd/templates/README-template.md`:
- Fills in title, problem, solution
- Extracts requirements from SKILL.md
- Generates "What It Does" from description
- Creates installation steps
- Builds "How It Works" with examples

### Phase 4: Publishing
1. Checks for `gh` CLI (guides setup if missing)
2. Reads VERSION file for version number
3. Creates GitHub repo (using `gh repo create`)
4. Commits and pushes all files
5. Publishes to ClawdHub with `clawdhub publish`

---

## πŸ“ File Structure Expected

```
your-skill/
β”œβ”€β”€ SKILL.md           # Required: skill description
β”œβ”€β”€ VERSION            # Required: version number (e.g., "1.0.0")
β”œβ”€β”€ scripts/           # Optional: your scripts
β”‚   └── main.sh
β”œβ”€β”€ README.md          # Generated by this tool
└── .gitignore         # Optional
```

---

## βš™οΈ Configuration

No configuration needed. The tool auto-detects everything from:
- `SKILL.md` (name, description, requirements)
- `VERSION` (version number)
- `scripts/` (code examples, dependencies)

---

## πŸ› Troubleshooting

### "gh: command not found"

Install GitHub CLI:
```bash
brew install gh
gh auth login
```

### "SKILL.md not found"

Create a minimal SKILL.md:
```markdown
---
name: your-skill
description: Brief description of what it does
---

# your-skill

More details about your skill here.
```

### "VERSION file not found"

Create a VERSION file:
```bash
echo "1.0.0" > VERSION
```

---

## πŸ“– References

- GitHub documentation best practices: https://docs.github.com/en/contributing/writing-for-github-docs/best-practices-for-github-docs
- README template: `~/clawd/templates/README-template.md`
- One-liner formulas: See "One-Liner Generation Patterns" section above

---

## License

MIT

Overview

This skill automates professional documentation and publishing for Clawdbot skills. It generates adoption-optimized READMEs, suggests concise one-liners, updates frontmatter, and publishes code to GitHub and ClawdHub with a single command. It streamlines the full workflow from SKILL.md analysis to live publication.

How this skill works

The tool reads your SKILL.md and VERSION file, extracts name, description, requirements, and scans scripts for dependencies. It generates three one-liner options using proven patterns, fills a README template with problem/solution-first content, and updates SKILL.md frontmatter. Finally it creates or updates a GitHub repo, pushes commits, and invokes the ClawdHub publish command.

When to use it

  • Preparing a skill for public release on ClawdHub and GitHub
  • You want an adoption-focused README that follows documentation best practices
  • Releasing a new version and publishing simultaneous updates
  • You need consistent one-liners and abbreviated descriptions for marketplaces
  • Automating repetitive publish and commit chores across many skills

Best practices

  • Keep SKILL.md clear and conciseβ€”one paragraph describes the problem and solution
  • Maintain a VERSION file with semantic versioning before running the tool
  • Provide examples or scripts in a scripts/ folder to improve generated README examples
  • Review and approve the generated one-liners and README preview before publishing
  • Ensure gh and clawdhub CLIs are installed and authenticated locally

Example use cases

  • Rapidly create a discoverable README for a new Clawdbot skill and push it live
  • Refresh documentation and bump version for a set of skills in a batch workflow
  • Standardize README structure across an organization for consistent adoption signals
  • Generate short, customer-facing one-liners for marketplaces and listings
  • Automate publishing for CI scripts that prepare assets and then release to GitHub + ClawdHub

FAQ

What files are required to run the skill?

A SKILL.md with basic frontmatter and a VERSION file are required. Optional scripts/ folder improves examples.

What CLI tools must be installed?

You need bash, jq, git, the GitHub CLI (gh) and the clawdhub CLI; the tool checks and guides setup when missing.