agentleFS
bruuuuucebruuuuuce/mana/skills/contributor-pattern-analysis/SKILL.md

contributor-pattern-analysis

Skill2 starsChanged 4 months agoMITView on GitHub

Aggregates quality findings from a single contributor's diff and identifies recurring growth patterns for coaching purposes.

The file

Show its rules and text

We split this skill into the rules it gives an agent

17 rules. About 0 are common, 12 are distinctive, and 5 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈12

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 5

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    After running the full quality skill chain on one contributor's diff.

    line 46
  2. Distinctive:

    When a Team Leader is conducting a branch coaching review session.

    line 47
  3. Distinctive:

    Do not use it as a substitute for human feedback or mentoring.

    line 51
  4. Distinctive:

    Do not use it to generate performance metrics (LOC, velocity, commit count).

    line 52
  5. Distinctive:

    Do not use it to rank contributors against each other.

    line 53
  6. Distinctive:

    Do not share the output directly with developers without Team Leader review.

    line 54
  7. Distinctive:

    Use constructive language throughout: "growth opportunity" not "error", "tends to" not "always makes the mistake of", "could strengthen" …

    line 82
  8. Very specific:

    Do not include isolated warning or info findings.

    line 85
  9. Distinctive:

    Do not produce a score, a rank, or a comparison with other contributors.

    line 86
  10. Very specific:

    Only one commit available: pattern classification is unreliable.

    line 97
  11. Very specific:

    All findings are isolated info findings: produce an empty pattern list and note no_recurring_patterns_found.

    line 99
  12. Very specific:

    Read engineering-guards.md and testing-policy.md from .mana/global/ when available to classify findings against project-specific standards.

    line 109
  13. Distinctive:

    Do not run this skill on a single file in isolation.

    line 130
  14. Distinctive:

    Do not use this skill to justify a disciplinary action.

    line 131
  15. Distinctive:

    Do not share the raw output with the contributor without TL review.

    line 132
  16. Distinctive:

    Do not use this skill as a replacement for code review.

    line 133
  17. Very specific:

    Follow docs/standards/agent-skill-output-standard.md (Agent And Skill Output Standard) for all generated artifacts.

    line 136

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

Contributor Pattern Analysis

Purpose

Aggregate quality findings from pre-review-defect, test-quality, null-safety-risk, java-performance-smell, and known-pitfalls-extraction into a per-contributor growth pattern report. The report is intended for Team Leader use only as a coaching instrument — not for performance evaluation.

This skill identifies recurring patterns across multiple commits: the same type of finding appearing more than once signals a habit or tendency, not an isolated mistake. Isolated occurrences are reported only when severity is blocker.

When To Use It

  • After running the full quality skill chain on one contributor's diff.
  • When a Team Leader is conducting a branch coaching review session.
  • As the aggregation step inside team-coaching-report-agent, not standalone.

When Not To Use It

  • Do not use it as a substitute for human feedback or mentoring.
  • Do not use it to generate performance metrics (LOC, velocity, commit count).
  • Do not use it to rank contributors against each other.
  • Do not share the output directly with developers without Team Leader review.

Inputs

  • contributor_email — email address of the contributor being analysed.
  • contributor_name — display name of the contributor.
  • contributor_commits — list of commits (SHA, subject, date) authored on the branch.
  • defect_findings — structured output from pre-review-defect on this contributor's diff.
  • test_findings — structured output from test-quality on this contributor's diff.
  • npe_findings — structured output from null-safety-risk on this contributor's diff.
  • performance_findings — (optional) output from java-performance-smell; include only when diff contains non-test .java files.
  • known_pitfalls — (optional) output from known-pitfalls-extraction.

Outputs

  • contributor_pattern_report — per-contributor growth pattern report with severity, frequency, concrete examples, and coaching recommendations.

Execution Logic

  1. Group all findings by category: test_coverage, nullability, defect_quality, performance, pitfall.
  2. Count occurrences per category across the contributor's commits.
  3. Classify each category:
    • habit: 3 or more occurrences across commits.
    • tendency: exactly 2 occurrences.
    • isolated: 1 occurrence — include only if severity is blocker.
  4. For each identified pattern, select the most representative evidence (concrete file:line reference, never vague).
  5. Produce a coaching recommendation for each pattern: suggest a specific action (pair programming session, code review focus, reference material, dedicated practice).
  6. Use constructive language throughout: "growth opportunity" not "error", "tends to" not "always makes the mistake of", "could strengthen" not "fails to".
  7. Do not include isolated warning or info findings.
  8. Do not produce a score, a rank, or a comparison with other contributors.

Decision Rules

  • blocker: unresolved high-risk pattern that, if repeated, would cause production incidents or block delivery gates.
  • warning: recurring pattern that creates review churn, technical debt, or quality risk if unaddressed.
  • info: observation useful for the TL's coaching notes; not actionable alone.

Failure Modes

  • Only one commit available: pattern classification is unreliable; report as isolated and add the warning low_commit_count.
  • All findings are isolated info findings: produce an empty pattern list and note no_recurring_patterns_found.
  • Input findings are missing or empty: produce an empty pattern report and note which inputs were missing.

Required Human Review

The Team Leader reviews this report before sharing any feedback with the contributor. This skill output is a coaching aid, not a formal assessment.

Service Context Layer

Read engineering-guards.md and testing-policy.md from .mana/global/ when available to classify findings against project-specific standards. Missing context files should be reported as warnings — they degrade classification accuracy but do not block the skill.

Interaction With Codex

Codex invokes this skill as part of team-coaching-report-agent. It should not expose the output directly to the contributor without Team Leader approval and review.

Interaction With MCP

This skill reads only local framework and workspace files. No external MCP access is needed or permitted.

Correct Usage Examples

  • Invoked by team-coaching-report-agent after running the quality skill chain on a single contributor's diff.
  • Team Leader runs the coaching review profile on a feature branch and uses the output to prepare a 1-to-1 feedback session.

Incorrect Usage Examples

  • Do not run this skill on a single file in isolation.
  • Do not use this skill to justify a disciplinary action.
  • Do not share the raw output with the contributor without TL review.
  • Do not use this skill as a replacement for code review.

Output Standard

Follow docs/standards/agent-skill-output-standard.md (Agent And Skill Output Standard) for all generated artifacts. Use templates/standard-agent-skill-report.template.md when no more specific template exists.

Internal reasoning must use compact caveman mode: terse fragments, evidence-first notes, no long narrative, and no private chain-of-thought in final artifacts. Maintain a context budget: keep a short working summary with objective, base branch or PR, issue keys, workspace path, checked evidence, open hypotheses, discarded hypotheses, and next checks instead of accumulating raw transcripts, full diffs, repeated file dumps, or copied tool output.

Diagram

flowchart TD
    Inputs[defect + test + npe + performance + pitfall findings] --> Group[Group by category]
    Group --> Count[Count occurrences per category]
    Count --> Classify{Classify pattern}
    Classify -->|3+| Habit[habit]
    Classify -->|2| Tendency[tendency]
    Classify -->|1 + blocker| Isolated[isolated blocker]
    Classify -->|1 + warn/info| Skip[skip]
    Habit --> Report[contributor-pattern-report]
    Tendency --> Report
    Isolated --> Report
    Report --> TLReview[Team Leader review gate]

Example Output

skill: contributor-pattern-analysis
status: ready
contributor: "marco.rossi@example.com"
patterns_found: 3
warnings:
  - "testing-policy.md not found in .mana/global; classification uses defaults"
patterns:
  - category: test_coverage
    classification: habit
    occurrences: 4
    severity: warning
    summary: "Unit tests cover happy path only; edge cases and error paths absent"
    evidence: "src/test/java/payments/PaymentServiceTest.java:42"
    coaching_recommendation: "Pair programming session focused on boundary-value testing and error-path coverage"
  - category: nullability
    classification: tendency
    occurrences: 2
    severity: warning
    summary: "Optional return values used without null-check guard"
    evidence: "src/main/java/payments/PaymentMapper.java:88"
    coaching_recommendation: "Code review focus on Optional chaining; reference project null-safety-risk examples"
  - category: defect_quality
    classification: isolated
    occurrences: 1
    severity: blocker
    summary: "Unchecked exception swallowed in retry loop"
    evidence: "src/main/java/payments/RetryHandler.java:113"
    coaching_recommendation: "1-to-1 session on exception handling strategy before next PR"
outputs:
  - contributor_pattern_report
human_review_required: true

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.