agentleFS
XnLemonXnLemon/Neneko-skill/skills/neneko-code-taste/SKILL.md

neneko-code-taste

Skill2 starsChanged 3 months agoMITView on GitHub

Use when implementing or reviewing Go changes that should match tRPC-Agent-Go's code taste: minimal compatible diffs, consumer-oriented APIs, explicit ownership, and contract-level tests. Do not use for generic Go formatting-only requests.

The file

We split this skill into the rules it gives an agent

6 rules. About 0 are common, 5 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Prefer concrete constructors.

    line 28
  2. Distinctive:

    Keep implementation-specific types and configuration private to the owning package.

    line 30
  3. Distinctive:

    Put context.Context first in methods that accept it.

    line 32
  4. Distinctive:

    Add or update tests that prove observable contracts (including defaults, invalid input, errors, cancellation, concurrency, and lifecycle …

    line 43
  5. Very specific:

    Run the narrowest relevant tests first, then repository formatting/import and lint checks.

    line 46
  6. Distinctive:

    Read only the references needed for the current change:

    line 53

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Neneko Code Taste

Apply this skill when the user wants new Go code or a review to feel native to tRPC-Agent-Go (or to a project deliberately adopting its engineering style). The goal is a small, clear, compatible change whose public API and lifecycle semantics are intentional. Treat the target repository's local conventions as the final authority when they conflict with an example below.

Working loop

Before editing:

  1. Identify the owning package and read its AGENTS.md, nearby constructors, options, interfaces, tests, and error paths. Search for an existing extension point before adding a new one.
  2. State the contract that must remain stable: defaults, nil behavior, errors, cancellation, ordering, resource lifetime, and exported API.
  3. Choose the smallest focused patch. Avoid unrelated refactors and avoid a new abstraction until its responsibility and ownership are clear.

While editing:

  • Prefer concrete constructors; introduce an interface only when a consumer needs substitution or multiple implementations, and keep it consumer-owned.
  • Keep implementation-specific types and configuration private to the owning package. Export only the narrow contract callers need.
  • Put context.Context first in methods that accept it; propagate cancellation and do not store contexts in structs.
  • Make goroutine, channel, timer, close, and shutdown ownership explicit. The creator owns cleanup unless the API documents a different contract.
  • Return wrapped errors with lowercase, punctuation-free messages; use %w when callers need to inspect the cause. Do not silently discard meaningful errors.
  • Match existing naming, option precedence, default initialization, copy/clone behavior, and Godoc/comment patterns.

After editing:

  1. Add or update tests that prove observable contracts (including defaults, invalid input, errors, cancellation, concurrency, and lifecycle where relevant), not merely line coverage or private implementation details.
  2. Run the narrowest relevant tests first, then repository formatting/import and lint checks. Use scripts/check.sh when it fits the target repository.
  3. Perform a second-pass API/design review of the final diff: exported surface, abstraction/ownership, compatibility, context propagation, concurrency, error semantics, and unrelated churn. Report residual risks explicitly.

Read only the references needed for the current change:

  • engineering-principles.md for the decision hierarchy and scope boundaries.
  • api-design.md for constructors, interfaces, options, defaults, visibility, and compatibility.
  • concurrency.md for goroutine/channel/resource ownership and context cancellation.
  • error-handling.md for error contracts and wrapping.
  • testing.md for contract-focused regression tests.
  • examples.md for repository exemplars and commands.

This skill captures design taste, not repository-specific legal or operational requirements. Do not copy Tencent copyright headers, module paths, CGO rules, or multi-module test commands into another project unless that project explicitly requires them.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.