agentleFS
luocfprimeluocfprime/labtasker/.agents/skills/public-contract-change/SKILL.md

public-contract-change

Skill38 starsChanged 3 months agoApache-2.0View on GitHub

Change Labtasker's public Task lifecycle, HTTP API, Python API, CLI, configuration, query language, or persisted schema while keeping every public surface and invariant aligned. Do not use for internal refactors with no observable behavior change.

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 2 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Read the relevant section of docs/reference/specification.md before editing.

    line 8
  2. Distinctive:

    Before implementation, present every added, removed, or observably changed public interface as a compact, separate review item.

    line 13
  3. Very specific:

    Keep the Client and Server distributions independent.

    line 30
  4. Distinctive:

    Add focused tests at the lowest useful layer plus at least one real boundary test for each changed public surface.

    line 36

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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

Change the public contract

Read the relevant section of docs/reference/specification.md before editing. State the current contract, the requested change, and any unresolved behavioral choice. If the request intentionally changes a decided behavior, update the specification rather than treating the old text as an implementation obstacle.

Before implementation, present every added, removed, or observably changed public interface as a compact, separate review item. Give its exact signature, command or endpoint, inputs, defaults, output, errors and compatibility effect as applicable, then obtain the user's explicit approval. Do not infer approval for an interface because it appeared inside a long specification or broader implementation plan. A direct user request naming the exact interface change is explicit approval for that change.

Trace the complete affected slice before editing:

  • persistence model and Alembic migration, when stored data changes;
  • Server validation, service transaction, endpoint, error envelope, and OpenAPI;
  • Client boundary model, transport, public method/function, and retry behavior;
  • CLI command, stdout/stderr shape, help, and exit behavior;
  • Worker runtime, journal, fencing, or concurrency behavior when applicable;
  • user guides, references, examples, and tests.

Keep the Client and Server distributions independent; duplicate small boundary models when necessary instead of creating a shared runtime package. Preserve explicit lifecycle actions and run_id fencing. Define idempotency, concurrent state changes, uncertain transport outcomes, validation errors, and migration behavior instead of relying only on the happy path.

Add focused tests at the lowest useful layer plus at least one real boundary test for each changed public surface. Use independent SQLite connections for race or transaction claims. Verify generated OpenAPI whenever endpoint schemas or errors change.

Finish by checking the specification, implementation, tests, and user docs for the old term or behavior. Run targeted tests during development and the relevant validation matrix from AGENTS.md before handoff.

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.