Skip to content

Epic: Add OpenClaw skill and 2kc openclaw CLI command #11

@helixclaw

Description

@helixclaw

Summary

Add an OpenClaw AgentSkill package to the project and a 2kc openclaw CLI command for installing/uninstalling the skill into an OpenClaw workspace.

Context

2keychains is a secret broker designed for AI agent workflows. To integrate seamlessly with OpenClaw-powered agents, we need a discoverable skill package that teaches agents how to use 2kc commands. The skill lives in the repo as skill/SKILL.md and gets symlinked into the user's OpenClaw workspace via the CLI.

Goals

  1. Skill Package: A skill/ directory at project root containing SKILL.md with proper YAML frontmatter and agent instructions for using 2kc
  2. CLI Command: 2kc openclaw install and 2kc openclaw uninstall subcommands that manage a symlink at ~/.openclaw/workspace/skills/2keychains
  3. Prerequisite Validation: Verify OpenClaw workspace exists before attempting operations

Design Decisions

  • Symlink approach: The skill directory is symlinked (not copied) so updates to SKILL.md are immediately available without reinstalling
  • Workspace skills path: ~/.openclaw/workspace/skills/2keychains — workspace-level skills have highest precedence in OpenClaw's loading order
  • Skill directory at project root: skill/ (not skills/) since this project provides a single skill

Dependencies

Acceptance Criteria

  • skill/SKILL.md exists with valid OpenClaw frontmatter and agent-facing documentation
  • 2kc openclaw install symlinks skill/ to ~/.openclaw/workspace/skills/2keychains
  • 2kc openclaw uninstall removes the symlink
  • Both commands validate that ~/.openclaw/workspace/ exists
  • Idempotent: install when already installed and uninstall when not installed are handled gracefully
  • Tests cover install, uninstall, prerequisite checks, and idempotency

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions