Cap logo

Cap

Community
hawkyre
cap

Stage all changes, commit with a short message that matches the repo's existing commit style, and push. Use when the user wants to ship the current diff with no fuss.

Overview

Publisherhawkyre
Repositoryhawk-skills
Skill namecap
Stars
29
Forks
2
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by hawkyre on GitHub. Read the source before you install it.

Installation

Install the Cap AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/hawkyre/hawk-skills/tree/main/skills/cap
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/hawkyre/hawk-skills.git /tmp/hawk-skills
mkdir -p .claude/skills
cp -r /tmp/hawk-skills/skills/cap .claude/skills/cap
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Cap in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Cap on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Cap is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Cap

Commit and push the current working tree in one shot.

Process

  1. Read the state — run in parallel:

    • git status to see what's changed and untracked
    • git diff --stat and git diff --staged --stat for the size pre-check (always inline)
    • git log -10 --oneline to learn the repo's commit message style

    If the stat shows the diff is small (≲200 lines), read it inline with git diff / git diff --staged. If it's large, redirect: git diff > /tmp/hawk-cap-diff.patch 2>&1 and git diff --staged > /tmp/hawk-cap-diff-staged.patch 2>&1. Build the commit-message draft from rg -n '^(diff --git|@@|^\+|^-)' /tmp/hawk-cap-diff.patch | head -50 slices, not the whole capture.

  2. Match the repo's voice:

    • Mirror tense, casing, length, and prefix conventions from recent commits
    • If recent commits are lowercase imperative ("fix banner alignment"), do that
    • If they use Conventional Commits ("feat: ..."), do that
    • If they're terse one-liners, stay terse — do not pad
  3. Draft a commit message: one short line, summarizes the why of the change. No body unless the diff genuinely needs one.

    Never include AI attribution. No "Generated with Claude", no "🤖", no Co-Authored-By: Claude ... trailer, no mention of Anthropic, AI, or any model — not in the subject, not in the body, not in a trailer. Even if the repo's history contains such trailers, do not add them. The commit must read as if a human wrote it.

  4. Stage explicitly: add the specific files you intend to commit by name. Never git add -A or git add . — that risks sweeping in .env, credentials, or other untracked files the user did not mean to commit.

  5. Sanity check before committing:

    • If staged files include anything that smells like a secret (.env*, *.pem, credentials*, *.key), stop and ask
    • If the working tree is clean, say so and exit — do not create empty commits
  6. Commit and push:

    • Commit with the drafted message
    • If the branch has no upstream, push with -u origin <branch>; otherwise plain git push
    • If pre-commit hooks fail, fix the issue and create a new commit (never --amend, never --no-verify)
  7. Handle non-fast-forward rejections — if push is rejected because the remote moved ahead:

    • Run git pull --rebase to replay your local commits on top of the remote tip. This is safe — you're only rebasing your unpushed commits, which no one else has.
    • If the rebase hits conflicts: stop, surface the conflicting paths, and let the user resolve. Do not auto-resolve.
    • After a clean rebase, retry git push.
    • Do not fall back to a merge pull (git pull without --rebase) — that creates noisy Merge branch 'main' of origin/... commits, which is exactly what we're avoiding.
    • Do not force-push to recover from a rejection.
  8. Report: the short SHA, the message, and the push destination. One line.

Rules

  • Never push to main/master with --force or --force-with-lease
  • Never skip hooks (--no-verify, --no-gpg-sign)
  • Never amend a commit that's already been pushed
  • If the user is mid-rebase, mid-merge, or has conflicts, stop and surface the state instead of committing through it
  • Big-output discipline. Heavy command output (project check, full git diff, repo-wide search, long log, large fetch) goes to /tmp/hawk-cap-<step>.log, then rg -n '<pattern>' /tmp/hawk-cap-<step>.log | head -50 extracts what you need. Read only the required lines from the file. See README → Big-output discipline.

Frequently asked questions

What does the Cap AI skill do?

Stage all changes, commit with a short message that matches the repo's existing commit style, and push. Use when the user wants to ship the current diff with no fuss.

Why use Cap on TypingMind?

Because you install it once and use it with any model. Cap is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Cap in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/hawkyre/hawk-skills/tree/main/skills/cap. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Cap?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Cap?

As many as you like. As long as a model supports skills, you can use Cap with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Cap AI skill free?

Yes. It is published on GitHub by hawkyre under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇