Skip to content

Skills

Skills are reusable prompt packages invoked from the interactive terminal with $ commands. They are useful for repeatable workflows, project-specific review rituals, coding conventions, and team playbooks.

Skills are directories containing SKILL.md.

Precedence, highest first:

PathScopeNotes
.kosmokrator/skills/<name>/SKILL.mdprojectCanonical project-local path.
.agents/skills/<name>/SKILL.mdprojectEcosystem-compatible project path.
~/.kosmokrator/skills/<name>/SKILL.mduserPersonal global skills.

If the same skill name exists in multiple paths, the higher-precedence project skill wins.

Each skill uses YAML frontmatter followed by markdown instructions:

---
name: code-review
description: Review a change for regressions, missing tests, and maintainability risks
---
# Code Review
Use a review stance. Findings first, ordered by severity.
Reference files and line numbers.
Run relevant tests when possible.

Required field:

FieldPurpose
nameInvocation name used as $name.

Optional field:

FieldPurpose
descriptionDisplayed in $list and command completion.

Skill content is scanned for prompt-injection patterns before loading. Unsafe content is skipped.

Type these in the KosmoKrator prompt, not in your shell:

CommandPurpose
$List skills.
$list or $skillsList skills.
$create <name>Create a project skill template under .kosmokrator/skills.
$show <name>Show skill content and path.
$edit <name>Ask the agent to help edit the skill file.
$delete <name>Delete the skill directory.
$name [task]Invoke a skill and inject its prompt into the agent turn.

Examples:

$list
$create migration-review
$show migration-review
$migration-review Review the database migration in this branch

When you invoke a skill, KosmoKrator injects a prompt shaped like:

SKILL: skill-name
Task: optional user args
---
skill markdown content

The active agent mode and permission mode still apply. A skill cannot bypass Plan/Ask read-only constraints, hard denied tools, blocked paths, MCP trust, integration permissions, or approval policy.

Project skills are best for workflows everyone on a repository should share:

.kosmokrator/
skills/
release-check/
SKILL.md
api-review/
SKILL.md

Good project skill examples:

  • “Review changes against our API compatibility rules.”
  • “Update docs after any new CLI flag or setting.”
  • “Run the repository release checklist.”
  • “Audit database migrations for rollback and lock risks.”

User skills are personal and live outside the repo:

~/.kosmokrator/skills/
my-review-style/
SKILL.md

Use user skills for private preferences that should not affect a team repository.

Good skills:

  • Say when they should be used.
  • Define output shape.
  • Tell the agent what evidence to gather.
  • Mention verification steps.
  • Stay scoped to one workflow.
  • Avoid secrets, private tokens, and large copied documents.

Weak skills:

  • Contain vague advice without a concrete workflow.
  • Try to override system safety or permission behavior.
  • Mix several unrelated workflows.
  • Duplicate content that already belongs in AGENTS.md or project docs.
FeatureSkillsPower commands
Prefix$:
Defined byMarkdown filesPHP command classes
Best forProject/user playbooksBuilt-in animated workflows
Editable by useryescode change required
Can be project-specificyesno

Use a skill when the workflow is mainly instructions. Use a power command when the product should ship a named first-class behavior.