agentleFS
onelastcommitonelastcommit/noctra/.claude/skills/writing-good-tickets/SKILL.md

writing-good-tickets

Skill4 starsChanged 31 days agoMITView on GitHub

Use when drafting, reviewing, or improving Linear tickets so Noctra can implement them autonomously with clear context, scope, acceptance criteria, and likely files.

1 other project uses a version of this.

Adopted by

Most recently taken up by

  • Other versions1 project uses a version of this.

    Word for word · 1

    1. ahmadAlMezaal/noctra★ 3100% same

    Edited · 0

    None found.

    Wrote their own version · 0

    None found.

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository11 other files it gives its agents.

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈7

    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. Very specific:

    Use this playbook when preparing a ticket for Noctra or diagnosing a PR that missed the intended scope.

    line 8
  2. Distinctive:

    Before moving a ticket to the trigger state or adding the trigger label:

    line 39
  3. Distinctive:

    Write acceptance criteria as observable checks a reviewer or test can verify.

    line 45
  4. Distinctive:

    Add test and lint expectations.

    line 46
  5. Distinctive:

    Call out what is out of scope to prevent unrelated refactors or polish.

    line 47
  6. Distinctive:

    Keep the ticket small enough for a single implementation session.

    line 48
  7. Distinctive:

    Check whether the ticket named the relevant files and observable acceptance criteria.

    line 120
  8. Distinctive:

    Add the missing context directly to the ticket or as a requeue note.

    line 121

≈ “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

Writing Good Noctra Tickets

Use this playbook when preparing a ticket for Noctra or diagnosing a PR that missed the intended scope.

Noctra hands the ticket text to a coding agent with no shared hallway context. Write the ticket as if a competent developer joined the team for one day and needs enough context to finish the work without asking follow-up questions.

Ticket Template

## Context
[What exists today and why this needs to change. Link to relevant code, errors, or docs.]

## Requirements
1. [Specific, implementable requirement]
2. [Another requirement]
3. [Continue as needed]

## Acceptance Criteria
- [ ] [Testable criterion that describes observable behavior]
- [ ] [Another criterion]
- [ ] All existing tests pass
- [ ] Linter passes with no new warnings

## Files likely involved
- `path/to/file` - [why this file matters]
- `path/to/another-file` - [why this file matters]

## Out of scope
- [Explicitly state what not to touch]

Checklist

Before moving a ticket to the trigger state or adding the trigger label:

  1. State the current behavior and the desired behavior.
  2. Name the exact files, symbols, routes, commands, screenshots, logs, or docs that give context.
  3. Include verbatim errors, stack traces, failed test output, or API responses for bug fixes.
  4. Break requirements into concrete implementation steps, not broad outcomes.
  5. Write acceptance criteria as observable checks a reviewer or test can verify.
  6. Add test and lint expectations.
  7. Call out what is out of scope to prevent unrelated refactors or polish.
  8. Keep the ticket small enough for a single implementation session. A good target is work a mid-level developer could complete in 2-4 hours.

Examples

Bad bug ticket:

Fix the auth bug.

Good bug ticket:

## Context
`POST /auth/login` returns 500 when a user's refresh token has expired.
It should return 401 and clear the session cookie so the client redirects
to login. `src/auth/auth.controller.ts` currently lets `TokenExpiredError`
escape from the login handler.

## Requirements
1. Catch `TokenExpiredError` from `jsonwebtoken` in the login handler.
2. Return HTTP 401 with body `{ "error": "session_expired" }`.
3. Clear the `refresh_token` cookie with `maxAge: 0`.

## Acceptance Criteria
- [ ] Expired refresh tokens return 401, not 500.
- [ ] The response clears the `refresh_token` cookie.
- [ ] A test covers the expired-token case.
- [ ] Existing auth tests pass.

## Files likely involved
- `src/auth/auth.controller.ts` - login handler.
- `src/auth/auth.controller.spec.ts` - add regression coverage.

Bad feature ticket:

Add dark mode.

Good feature ticket:

## Context
Users need a dark mode toggle. `src/contexts/ThemeContext.tsx` already
provides `theme` and `setTheme()`, and app startup already reads
AsyncStorage.

## Requirements
1. Add an Appearance section to `src/screens/SettingsScreen.tsx`.
2. Add a Light/Dark toggle that calls `setTheme()`.
3. Persist the selected value in AsyncStorage under `user:theme`.
4. Verify startup still defaults to the system theme when no preference exists.

## Acceptance Criteria
- [ ] Settings shows a light/dark toggle.
- [ ] The choice persists across app restarts.
- [ ] No preference still defaults to the system theme.
- [ ] Existing ThemeContext tests pass.

## Files likely involved
- `src/screens/SettingsScreen.tsx` - add the UI.
- `src/contexts/ThemeContext.tsx` - verify existing persistence behavior.

## Out of scope
- Do not update other screens.
- Do not add new theme tokens.

If A Noctra PR Missed The Mark

  1. Check whether the ticket named the relevant files and observable acceptance criteria.
  2. Add the missing context directly to the ticket or as a requeue note.
  3. Close any incorrect PR if it is not salvageable.
  4. Requeue the ticket after tightening scope.

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.