AGENT SKILL

coder

Org role guidance for a coder: implement features and fixes to spec, matching the codebase's existing conventions. Surgical diffs, explicit error handling, tests alongside the change, and running build and lint before declaring done.

License 许可
Apache-2.0
所属仓库
monoes/monomind
最近更新
2026-11-14
Stars
★ 23
Forks
2

01 前言 Front Matter

name
coder
tags
[ "engineering", "coding-standards", "testing" ]
tools
[ "monograph_query", "monograph_context", "monograph_impact" ]
source
https://github.com/monoes/monomind
license
Apache-2.0
description
Org role guidance for a coder: implement features and fixes to spec, matching the codebase's existing conventions. Surgical diffs, explicit error handling, tests alongside the change, and running build and lint before declaring done.

03 SKILL.md 正文

Coder — Best Practices

Focus

Implements features and fixes to spec — clean, correct, maintainable code that matches the existing codebase's conventions.

Best practices

  • Understand requirements fully before writing code; clarify ambiguity rather than guessing.
  • Search the codebase for existing patterns (naming, error handling, module layout) and match them instead of inventing new conventions.
  • Design the interface/contract first, then implement — small, single-responsibility functions and classes.
  • Handle errors explicitly: validate inputs at boundaries, fail with actionable messages, never swallow exceptions silently.
  • Write or update tests alongside the change (TDD when feasible: write a failing test, then make it pass).
  • Keep changes surgical — touch only what the task requires; don't refactor unrelated code.
  • Prefer composition and dependency injection over hardwired globals so code stays testable.
  • Document non-obvious logic with brief comments; let clear naming carry the rest.

Common pitfalls

  • Over-engineering: adding abstractions, config flags, or "flexibility" nobody asked for.
  • Skipping input validation because "it should never happen" — it eventually does.
  • Copy-pasting logic instead of extracting a shared function, or over-abstracting single-use code.
  • Leaving debug code, TODOs, or commented-out blocks in the final diff.
  • Declaring done without running the actual build/lint/test suite.

Tools & techniques

  • Use the project's existing lint/type-check/test commands before declaring work complete.
  • Grep/search for prior art (similar features) before designing a new one from scratch.
  • Use feature flags or incremental commits for risky changes rather than one giant diff.
  • Profile before optimizing — don't guess at performance bottlenecks.

04 同仓库更多 Skills

monoes
monoes/monomind

isms-audit-expert

Use when planning or running an ISO 27001 ISMS audit: risk-based audit schedules, Annex A control assessment, Statement of Applicability and nonconformities. Auditor-side procedures, versus compliance-auditor, which is org role guidance across SOC 2, HIPAA and PCI-DSS.

★ 23
monoes
monoes/monomind

instrument-data-to-allotrope

Convert laboratory instrument output files (PDF, CSV, Excel, TXT) to Allotrope Simple Model (ASM) JSON format or flattened 2D CSV. Use this skill when scientists need to standardize instrument data for LIMS systems, data lakes, or downstream analysis. Supports auto-detection of instrument types. Outputs include full ASM JSON, flattened CSV for easy import, and exportable Python code for data engineers. Common triggers include converting instrument files, standardizing lab data, preparing data for upload to LIMS/ELN systems, or generating parser code for production pipelines.

★ 23
monoes
monoes/monomind

experiment-designer

Use when planning a product A/B or multivariate test: If/Then/Because hypotheses, primary and guardrail metrics, sample size and MDE, ICE prioritization. For logging and reproducing ML runs use experiment-tracker; for scientific study design use experimental-design.

★ 23
monoes
monoes/monomind

digest

Generate a daily or weekly digest of activity across all connected sources. Use when catching up after time away, starting the day and wanting a summary of mentions and action items, or reviewing a week's decisions and document updates grouped by project.

★ 23
monoes
monoes/monomind

design-critique

Get structured design feedback on usability, hierarchy, and consistency. Trigger with "review this design", "critique this mockup", "what do you think of this screen?", or when sharing a Figma link or screenshot for feedback at any stage from exploration to final polish.

★ 23
monoes
monoes/monomind

deployment-pipeline-design

Use when architecting a multi-stage CI/CD pipeline with approval gates, SAST and DAST scans, environment promotion, canary rollout and automated rollback. Design-level; for concrete Dockerfile and health check patterns use deployment-patterns.

★ 23