Add yeet skill

This commit is contained in:
Andrew Ambrosino
2025-12-16 13:30:53 -08:00
parent b1adbc01bd
commit 3f4a6f91c7
3 changed files with 14 additions and 5 deletions

View File

@@ -342,8 +342,8 @@ pub const FEATURES: &[FeatureSpec] = &[
FeatureSpec {
id: Feature::Skills,
key: "skills",
stage: Stage::Experimental,
default_enabled: false,
stage: Stage::Stable,
default_enabled: true,
},
FeatureSpec {
id: Feature::ShellSnapshot,

View File

@@ -1,6 +1,4 @@
# Skills (experimental)
> **Warning:** This is an experimental and non-stable feature. If you depend on it, please expect breaking changes over the coming weeks and understand that there is currently no guarantee that this works well. Use at your own risk!
# Skills
Codex can automatically discover reusable "skills" you keep on disk. A skill is a small bundle with a name, a short description (what it does and when to use it), and an optional body of instructions you can open when needed. Codex injects only the name, description, and file path into the runtime context; the body stays on disk.

11
skills/yeet/SKILL.md Normal file
View File

@@ -0,0 +1,11 @@
---
name: yeet
description: Automate branch+PR flow: if not already, create ambrosino/{description} branch, then stage+commit all, push, and open a gh PR with a concise summary.
---
# Yeet
- If on main/master/default, `git checkout -b "ambrosino/{description}"`; otherwise stay on the current branch.
- Confirm status `git status -sb`, then stage everything `git add -A`.
- Commit tersely with the description, e.g. `git commit -m "{description}"`.
- Push with tracking: `git push -u origin $(git branch --show-current)`.
- Open a PR: `gh pr create --fill --head $(git branch --show-current)` and edit title/body to reflect the description and the deltas.