Xiaonangua-openclaw-skills skill-template
OpenClaw Skill template generator. Create skill scaffolds, validate structure, enhance SKILL.md, generate command frameworks, tips, publish checklists.
install
source · Clone the upstream repo
git clone https://github.com/jiyangnan/xiaonangua-openclaw-skills
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/jiyangnan/xiaonangua-openclaw-skills "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/skill-engineering/skill-template" ~/.claude/skills/jiyangnan-xiaonangua-openclaw-skills-skill-template && rm -rf "$T"
OpenClaw · Install into ~/.openclaw/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/jiyangnan/xiaonangua-openclaw-skills "$T" && mkdir -p ~/.openclaw/skills && cp -r "$T/skills/skill-engineering/skill-template" ~/.openclaw/skills/jiyangnan-xiaonangua-openclaw-skills-skill-template && rm -rf "$T"
manifest:
skills/skill-engineering/skill-template/SKILL.mdsource content
skill-template
Multi-purpose utility tool for managing entries, searching data, and exporting records. A general-purpose CLI toolkit with init, add/remove, list, search, and export capabilities — ideal as a starting point for building your own skill or as a standalone data management tool.
Commands
| Command | Description |
|---|---|
| Execute the main function with the given input |
| Show configuration file path ( location) |
| Show current status (reports "ready" when operational) |
| Initialize the data directory and prepare for use |
| List all entries in the data log |
| Add a new dated entry to the data log |
| Remove a specified entry |
| Search the data log for a term (case-insensitive) |
| Export all data from the data log to stdout |
| Show version number and data directory path |
| Show help message with all available commands |
| Show version number |
How It Works
skill-template manages a simple text-based data log (data.log) in its data directory. You can add entries (automatically date-stamped), list them, search through them, and export the full contents. Every command is also recorded in a separate history.log for auditing.
Workflow
- Initialize: Run
to set up the data directoryskill-template init - Add entries: Use
to log items with automatic date stampsskill-template add - Review: Use
to see all entries orskill-template list
to find specific onesskill-template search - Export: Run
to output all data for backup or processingskill-template export
Data Storage
All data is stored in
$SKILL_TEMPLATE_DIR or defaults to ~/.local/share/skill-template/. The directory contains:
— main data file where entries are stored (date-stamped lines)data.log
— timestamped log of all commands executedhistory.log
— configuration file path (referenced byconfig.json
command)config
The tool automatically creates the data directory on first run. You can override the storage location by setting the
SKILL_TEMPLATE_DIR environment variable.
Requirements
- Shell: Bash 4+
- No external dependencies — uses only standard Unix utilities (
,date
,grep
,wc
)cat - Works on: Linux, macOS, any POSIX-compatible system
When to Use
- Quick data logging — Use
to capture timestamped entries without opening an editorskill-template add "meeting notes: discussed Q2 targets" - Building a new skill — Fork this as a starting template with a working CLI framework (case dispatch, logging, data management) already in place
- Simple searchable notebook — Add notes throughout the day, then use
to find them laterskill-template search "keyword" - Data export for processing — Run
to pipe all entries to another tool or save as a backup fileskill-template export - Learning bash CLI patterns — Study the script as an example of a well-structured bash tool with case-based dispatch, logging, and data management
Examples
# Initialize the data directory skill-template init # Add some entries skill-template add "Project Alpha: milestone 1 complete" skill-template add "Bug fix: resolved login timeout issue" skill-template add "Meeting: sprint review with team" # List all entries skill-template list # Search for project-related entries skill-template search "Project" # Check the tool status skill-template status # View version and data location skill-template info # Show configuration path skill-template config # Export all data to a file skill-template export > backup.txt # Run a custom function skill-template run "my-task"
Configuration
Set the
SKILL_TEMPLATE_DIR environment variable to change the data directory:
export SKILL_TEMPLATE_DIR="$HOME/my-skill-data"
Default location:
~/.local/share/skill-template/
Output
All command output goes to stdout in plain text. The
list and export commands output the raw content of data.log, making them easy to pipe into other tools:
skill-template list | grep "2024-03" skill-template export | wc -l
Powered by BytesAgain | bytesagain.com | hello@bytesagain.com