agentleFS
mick-gskmick-gsk/drift/.github/skills/drift-finding-message-authoring/SKILL.md

drift-finding-message-authoring

Skill14 starsChanged 7 months agoMITView on GitHub

Write and review reason and next_action strings in Drift signal files. Use when authoring a new signal, sharpening existing finding messages, or reviewing unclear finding output for actionability and clarity.

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈9

    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:

    Use this skill to write and review reason and next_action strings that are precise, actionable, and consistent with existing Drift finding …

    line 9
  2. Distinctive:

    Name the code pattern directly: Prefer the observed structure or smell over abstract category labels.

    line 38
  3. Distinctive:

    Keep output concise: Do not expand the message into explanation prose that belongs in docs or triage notes.

    line 40
  4. Very specific:

    Read the current reason and next_action from the target signal file under src/drift/signals/.

    line 47
  5. Distinctive:

    If one field is missing, treat that as a failure and author the missing field from the signal's actual detection logic.

    line 49
  6. Distinctive:

    Do not mark a criterion as passed without checking the literal wording.

    line 59
  7. Distinctive:

    no new claims not supported by the signal

    line 68
  8. Distinctive:

    no schema or field-name changes

    line 69
  9. Distinctive:

    no more than 2 sentences per field

    line 70
  10. Distinctive:

    Before concluding, verify all of the following:

    line 91
  11. Distinctive:

    If any check fails, revise the strings before returning them.

    line 98

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

Drift Finding Message Authoring

Use this skill to write and review reason and next_action strings that are precise, actionable, and consistent with existing Drift finding output.

When To Use

  • a new signal needs initial finding text
  • an existing signal has unclear, vague, or non-actionable messages
  • the ROADMAP task to sharpen finding explanations is being worked through
  • a community report says a finding is confusing or hard to act on

Not For

  • changing scoring, thresholds, or signal heuristics
  • inventing new finding facts not supported by the signal logic
  • rewriting output schemas or CLI formatting
  • broad documentation work outside the signal file itself

Quality Criteria

CriterionPass condition
Cause specificityNames the concrete code pattern, not a category
Jargon-freeUnderstandable without reading Drift docs
Actionabilitynext_action can be executed immediately
LengthEach field is at most 2 sentences
No hedgingAvoids phrases like "consider", "may", "possibly", or "might want to"

Core Rules

  1. Preserve factual meaning. Improve clarity and actionability without changing what the signal actually detected.
  2. Name the code pattern directly. Prefer the observed structure or smell over abstract category labels.
  3. Make the next step concrete. next_action should tell the user exactly what to inspect, consolidate, remove, or move.
  4. Keep output concise. Do not expand the message into explanation prose that belongs in docs or triage notes.
  5. Review both fields together. A strong reason with a vague next_action, or the reverse, is incomplete.

Standard Workflow

1. Load The Existing Strings

Read the current reason and next_action from the target signal file under src/drift/signals/.

If one field is missing, treat that as a failure and author the missing field from the signal's actual detection logic.

2. Evaluate Against The Quality Criteria

Assess each criterion with this format:

  • ✅ pass or ❌ fail
  • quote the exact failing phrase when a criterion fails
  • explain the failure in one sentence tied to the criterion

Do not mark a criterion as passed without checking the literal wording.

3. Produce An Improved Version

Rewrite both fields so they keep the same factual content while improving clarity, specificity, and actionability.

Constraints:

  • no hedging language
  • no new claims not supported by the signal
  • no schema or field-name changes
  • no more than 2 sentences per field

4. Emit Diff-Ready Output

Return the result in this exact structure:

BEFORE
  reason:      "[original text]"
  next_action: "[original text]"

AFTER
  reason:      "[improved text]"
  next_action: "[improved text]"

CHANGES
  - [one bullet per change explaining what was fixed and why]

5. Final Review

Before concluding, verify all of the following:

  • the improved reason names a concrete pattern or behavior
  • the improved next_action tells the user what to do next without soft verbs
  • neither field exceeds 2 sentences
  • the rewrite does not introduce facts absent from the signal logic

If any check fails, revise the strings before returning them.

Review Checklist

  • The skill is being used for finding-message authoring, not signal logic changes
  • The existing strings were read from the actual signal file
  • Each quality criterion was evaluated explicitly
  • Failing phrases were quoted verbatim
  • The improved text preserves factual meaning
  • next_action is concrete and immediately executable
  • The result is formatted as BEFORE / AFTER / CHANGES

References

  • .github/instructions/drift-policy.instructions.md
  • .github/instructions/drift-prompt-engineering.instructions.md
  • .github/skills/drift-signal-development-full-lifecycle/SKILL.md
  • src/drift/signals/
  • ROADMAP.md

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.