Skip to content
Agentmart
Submit a tool

programmer-behaviour-rules

Standard pre-coding behaviour rules for programmer agents — read before writing, match conventions, no new dependencies without reason, explain before…

Skill by MoltenRuby

IndexedMIT
Write a review

Chalk Labs

Need help deploying programmer-behaviour-rules?

Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.

Book a call

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/moltenruby-programmer-behaviour-rules

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Standard pre-coding behaviour rules for programmer agents — read before writing, match conventions, no new dependencies without reason, explain before refactoring, ask before assuming, and clean test design (no tautological tests, mocks only at architectural boundaries)

Use cases: design, testing, writing

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/programmer-behaviour-rules

What's inside

Skill name
programmer-behaviour-rules
Description
Standard pre-coding behaviour rules for programmer agents — read before writing, match conventions, no new dependencies without reason, explain before refactoring, ask before assuming, and clean test design (no tautological tests, mocks only at architectural boundaries)
License
MIT
Compatibility
opencode
Instructions
62 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

## Behaviour rules

- Before writing any code, read the relevant existing files to understand conventions in use.
- Match the style, naming conventions, and module patterns already present in the codebase.
- Do not introduce new dependencies without stating the reason and asking for confirmation.
- When refactoring, explain what changes and why before making the changes.
- If a requirement is ambiguous, ask one clarifying question before proceeding.

## Test design

### No tautological tests

A tautological test asserts the implementation rather than the behaviour. It has no diagnostic value
and breaks when the code is restructured even if the behaviour is unchanged.

Forbidden patterns:

- Asserting that a mock was called (e.g. `mock.assert_called_once_with(...)`,
  `expect(spy).toHaveBeenCalledWith(...)`) when the call is an internal implementation detail —
  not an observable output or a boundary side-effect.
- Asserting return values that merely echo constructor arguments with no transformation.
- Tests whose only assertion is the absence of an exception thrown by a mock.

Required: every test must assert observable behaviour — a return value, a visible state change, an
event emitted, or a boundary call that constitutes the feature's contract.

### Mocks only at architectural boundaries

Mocks, stubs, and spies are legitimate **only** at architectural boundaries. A boundary is any point
where the code crosses out of the process or into infrastructure it does not own.

Approved boundary list (mock here):

- **I/O** — file system reads/writes, stdin/stdout/stderr
- **CLI** — subprocess invocations, shell commands
- **Network / web service calls** — HTTP clients, gRPC stubs, WebSocket connections
- **Databases / data access** — SQL, NoSQL, ORM sessions, query builders
- **Message queues / event buses** — Kafka, RabbitMQ, SQS, pub/sub producers/consumers
- **Clock / time** — `datetime.now()`, `Date.now()`, `time.time()`, system timers
- **Randomness** — `random`, `uuid`, `crypto.randomBytes`, any non-deterministic value source
- **External services** — payment gateways, email senders, SMS providers, third-party APIs

Not a boundary — do not mock:

- Domain services, use cases, application services
- In-process repositories backed by in-memory data structures (use a real in-memory fake instead)
- Pure functions and value objects
- Internal collaborators within the same module or package

### Fakes and in-memory implementations are always preferred over mocks

When a dependency is an interface or abstract type (repository, gateway, port), provide a concrete
in-memory fake that satisfies the contract. Fakes are first-class code: they are tested, they enforce
the interface, and they enable fast, deterministic integration tests without mocks.

### No monkey-patching of internal collaborators

Do not use patching/monkey-patching mechanisms (e.g. `unittest.mock.patch`, `jest.spyOn`,
`sinon.stub`) to replace non-boundary collaborators during tests. This creates invisible coupling
between the test and the implementation structure.

From MoltenRuby/MrSmith, MIT.

More from MoltenRuby/MrSmith

Signals

Stars
0
Forks
0
Open issues
0
Last commit (this folder)
Mar 24, 2026 (7 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from MoltenRuby

Done for you

Rather not set it up yourself?

Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.

See how we build AI agents →Read the case studies

Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.

launches shipped
50+
launches shipped
media placements
500+
media placements
founders on every account
2
founders on every account

Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block

Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.

Get programmer-behaviour-rules running in your business

Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.

Goes to the Chalk Labs founders, not the newsletter. Privacy

Need help deploying programmer-behaviour-rules?

CallGet help
Cite this page

programmer-behaviour-rules skill. Agent Mart. https://agentmart.dev/skills/moltenruby-programmer-behaviour-rules (last updated 2026-10-24)