hitkeep: Skill for Claude Code

.agents/skills/cobra-viper/SKILL.md

cobra-viper is a skill for Claude Code from PascaleBeier/hitkeep. It costs 104 tokens per session (4,315 once invoked), scanned A, a copy of cobra-viper, MIT.

Architecture guidance for Go command-line applications built with Cobra and Viper. Cobra handles commands and flags, while Viper combines configuration from files, environment variables, and flags.

In plain words
What is it for?
Use it when creating or refactoring a Go CLI, adding commands or flags, connecting configuration files and environment variables, or testing command behavior.
Why use it?
It keeps command-line details separate from application logic and provides a consistent way to manage configuration and test commands.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: installed under .agents/ (shared by several agents).

This is PascaleBeier/hitkeep's own configuration. It tells Claude Code how to work on hitkeep itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything hitkeep configures →

Part of the cobra-viper plugin — 1 skill shipped together

Reuse

Borrowing it

Nothing to install: this file belongs to PascaleBeier/hitkeep. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/PascaleBeier/hitkeep/main/.agents/skills/cobra-viper/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/PascaleBeier/hitkeep

Made for: Claude Code.

Or install cobra-viper, the plugin that ships this one along with the rest of its 1 skill.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for cobra-viper

README.md
[![agentmods](https://agentmods.dev/badge/skills/pascalebeier/hitkeep/cobra-viper/github.svg)](https://agentmods.dev/skills/pascalebeier/hitkeep/cobra-viper)
Your own site
<a href="https://agentmods.dev/skills/pascalebeier/hitkeep/cobra-viper"><img src="https://agentmods.dev/badge/skills/pascalebeier/hitkeep/cobra-viper/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for cobra-viper

Your own site · 80×15
<a href="https://agentmods.dev/skills/pascalebeier/hitkeep/cobra-viper"><img src="https://agentmods.dev/badge/skills/pascalebeier/hitkeep/cobra-viper.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 104 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,315 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 2 findings, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Rogue Agent · line 110
    Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.
    Fix: Remove any persistence mechanisms (cron jobs, startup scripts, state files). Skills should not maintain state across sessions without explicit user consent.
  • medium Rogue Agent · line 249
    Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.
    Fix: Remove any persistence mechanisms (cron jobs, startup scripts, state files). Skills should not maintain state across sessions without explicit user consent.
How audits are shown
Origin 100% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00104 $0.04315
Opus 5.5 $0.00042 $0.01726
Sonnet 5.5 $0.00021 $0.00863
Haiku 4.5 $0.00010 $0.00432

Measured 2mo ago against content hash e215454171a0, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

cobra-viper scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

100% identical to cobra-viper — 64 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.agents/skills/cobra-viper/SKILL.md · 447 lines

How it starts

The opening of the file, as written. The whole thing — 447 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Go CLI Architecture: Cobra & Viper

Idiomatic patterns and best practices for building robust, configuration-driven command-line interfaces using Cobra and Viper.

When to Activate

  • Writing a new CLI application in Go
  • Adding commands, subcommands, or flags to an existing Cobra application
  • Integrating Viper for configuration file, environment variable, or flag management
  • Reviewing or refactoring CLI code that uses Cobra and/or Viper
  • Designing the command structure or configuration schema for a CLI tool
  • Testing CLI commands

Core Philosophy

The Command-First Architecture

Treat your application binary as a router for commands. The CLI framework (Cobra) should solely handle flags, arguments, and routing. Your core business logic should remain completely unaware of the CLI layer, making it highly testable and reusable.

Unified Configuration

Configuration should be environment-aware and unified. Viper acts as the single source of truth, merging defaults, config files, environment variables, and command-line flags into a cohesive state before passing it to the application logic.

Commands Are Built, Not Declared

Construct the command tree with factory functions (NewRootCmd()), not package-level var declarations. Globals make commands untestable (state leaks between test runs) and unusable as a library. The only global in a well-built CLI is main.go calling the factory.

CLI Package Organization

Anti-Pattern: Hiding all your commands and core logic deep inside an internal/ directory tree, or shoving everything into main.go.

Discoverable, Flat Structures

Command routing and business logic should live in standard, logically named packages. The cmd/ package handles the CLI surface area, while other top-level packages handle the domain logic.

mycli/
├── main.go               # Minimal entry point: strictly calls cmd.Execute()
├── cmd/                  # The Cobra routing layer
│   ├── root.go           # Root command factory, global flags, Viper setup
│   ├── serve.go          # The 'serve' subcommand
│   └── build.go          # The 'build' subcommand
├── engine/               # Core business logic (name based on your domain)
│   ├── server.go
│   └── compiler.go
├── go.mod
└── go.sum

Read the full file on GitHub · 447 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 447 lines · 104 tokens per session scan A e215454171a0

Subscribe to this mod's changes

cobra-viper is a skill published in the GitHub repository PascaleBeier/hitkeep (98 stars, last pushed 16d ago), licensed MIT. It adds 104 tokens to every session and 4,315 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 100% identical to cobra-viper, differing in 64 lines, and is treated as a copy.

Related

cobra-viper compared with skills from other repositories

cobra-viper next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
cobra-viperPascaleBeier/hitkeepSkill9816d agoMITA104Claude Code
memory-indexdimetron/pi-goSkill2224d agoMITA0Claude Code, Codex
memory-minedimetron/pi-goSkill2224d agoMITA35Claude Code
memory-statusdimetron/pi-goSkill2224d agoMITA27Claude Code
cartographer-kb-createBeppeTemp/cartographerSkill55yesterdayApache-2.0A53Claude Code, Codex
cartographer-kb-importBeppeTemp/cartographerSkill55yesterdayApache-2.0A51Claude Code, Codex
cartographer-kb-doctorBeppeTemp/cartographerSkill55yesterdayApache-2.0A91Claude Code, Codex