happier: Skill for Claude Code

.agents/skills/happier-testing/SKILL.md

happier-testing is a skill for Claude Code, Codex from happier-dev/happier. It costs 32 tokens per session (2,199 once invoked), scanned A, original, MIT.

A repository-specific testing and TDD workflow for Happier changes. TDD, or test-driven development, means writing a failing test first, making the code pass, and then improving the design.

In plain words
What is it for?
Use it when changing shared runtime code, command-line tools, servers, user interfaces, or other Happier behavior that needs targeted tests and validation.
Why use it?
It helps developers choose the right test area, avoid stale or overlapping fixtures, and distinguish product bugs from test or environment problems.

Skill for Claude CodeCodex

Which agent this was written for is unclear — built for openclaw. Also seen: installed under .agents/ (shared by several agents); built for openclaw.

This is happier-dev/happier's own configuration. It tells Claude Code and Codex how to work on happier 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 happier configures →

About the project

Happier is an open-source, end-to-end encrypted client that lets people run AI coding-agent sessions on a computer and continue controlling them from a phone, browser, or desktop app. It is for developers who use agents such as Claude Code, Codex, Gemini, or OpenCode across multiple devices, with self-hosting available. The catalogue entries are add-ons for configuring or extending this client and its supported coding-agent workflows.

happier-dev/happier · 1,624 stars · on GitHub · happier.dev

Reuse

Borrowing it

Nothing to install: this file belongs to happier-dev/happier. 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/happier-dev/happier/dev/.agents/skills/happier-testing/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/happier-dev/happier

Made for: Claude Code, Codex.

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 happier-testing

README.md
[![agentmods](https://agentmods.dev/badge/skills/happier-dev/happier/happier-testing.svg)](https://agentmods.dev/skills/happier-dev/happier/happier-testing)
Your own site
<a href="https://agentmods.dev/skills/happier-dev/happier/happier-testing"><img src="https://agentmods.dev/badge/skills/happier-dev/happier/happier-testing.svg" alt="Measured on agentmods" height="20"></a>
Per session 32 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,199 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found 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.00032 $0.02199
Opus 5 $0.00016 $0.01099
Sonnet 5 $0.00006 $0.00440
Haiku 4.5 $0.00003 $0.00220

Measured yesterday against content hash 95a3c24e87f0, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

happier-testing 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 yesterday.

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.

.agents/skills/happier-testing/SKILL.md · 137 lines

How it starts

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

Happier Testing And TDD

Use this skill for behavior-changing work in this repository, especially when changes touch shared runtime contracts, CLI/server/UI flows, or any lane that historically accumulates stale fixtures.

Goal

Apply strict RED-GREEN-REFACTOR while following Happier-specific lane, fixture, and rerun rules so changes do not silently drift until a late pipeline sweep.

Workflow

  1. Inventory first
  • Search for existing tests by symbol, route, command, feature id, config key, component name, or error code.
  • Map the affected lane(s) and any shared/package-local harnesses the change can invalidate before editing code.
  • Name the observable contract or material risk the test must distinguish before writing it.
  • For user-visible or environment-dependent work, define the composed live recipe before implementation: exact entry point, provider/account/state, actions, expected outcome, recovery path, and build/bundle/runtime identity that will prove the result.
  • Update the most relevant existing test first when possible.
  • Consolidate overlapping tests instead of stacking new ones on top.
  1. Classify failures correctly
  • production bug: runtime behavior is wrong
  • test drift: assertions/fixtures assume an obsolete contract
  • harness drift: helpers/mocks/testkit no longer match real runtime wiring
  • infra/resource issue: disk, Docker, stale child processes, or similar environment failures
  1. RED
  • Write or update the smallest relevant test first.
  • Run only the smallest relevant slice and confirm it fails because the intended behavior is missing or wrong, not because of setup, fixtures, mocks, wording, syntax, or an unrelated error.
  1. GREEN
  • Implement the smallest fix that satisfies the failing behavior.
  • Keep internal behavior real; mock only system boundaries.
  1. REFACTOR
  • Extract shared helpers only when there is repeated real duplication or repeated stale drift.
  • Keep file responsibilities focused.
  1. Broaden validation
  • After a targeted green run in a shared area, rerun one broader related lane.
  • Before handoff, rerun the touched package typecheck/build-enforcing lane and the relevant repo lanes.
  • Validate the current moving source and the existing development stack. Feature validation must not create, freeze, pack, install, identify, or certify a separate release representation; archive production and publication verification belong only to release automation during an explicitly dispatched release.

Read the full file on GitHub · 137 lines

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. yesterday Changed 95a3c24e87f0
  2. 3d ago First seen · 137 lines · 32 tokens per session scan A 90a848f1b743

Subscribe to this mod's changes

happier-testing is a skill published in the GitHub repository happier-dev/happier (1,624 stars, last pushed yesterday), licensed MIT. It adds 32 tokens to every session and 2,199 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

cmux-testing

A regression test for a bug fix ships as two commits so CI proves the test catches the bug.

manaflow-ai/cmux · 47 tokens

testing-expert

Expert-level software testing with unit tests, integration tests, E2E tests, TDD/BDD, and testing best practices. Use when the user mentions TDD, BDD, unit tests, integration tests, or end-to-end tests, or when the task involves Testing Fundamentals, Unit Testing, Integration Testing, or End-to-End Testing.

personamanagmentlayer/pcl · 73 tokens

absolute-work

End-to-end, phase-gated SDLC for AI coding agents: relentless design interview → reviewed spec → dependency-graphed task board → safe-wave TDD execution → verification → converge. Handles features, bugs, refactors, greenfield projects, planning breakdowns, and migrations. Triggers on "absolute work", "build this…

maddhruv/absolute · 104 tokens

TDD 开发纪律助手

引导开发过程遵循测试先行、红绿重构和回归验证纪律。.

cdavid817/vanehub-ai · 27 tokens

Pair Programming

AI-assisted pair programming with multiple modes (driver/navigator/switch), real-time verification, quality monitoring, and comprehensive testing. Supports TDD, debugging, refactoring, and learning sessions. Features automatic role switching, continuous code review, security scanning, and performance optimization with…

ruvnet/agentic-flow · 61 tokens

tdd

Test-driven development workflow for implementing features or fixing bugs through red-green-refactor. Use when the user asks to build, change, or fix behavior and the codebase has a practical automated test surface.

ntaffzii/Skill-Agents · 43 tokens