agentleFS
MicrosoftKnown publishermicrosoft/SynapseML/.github/skills/scala-code/SKILL.md

scala-code

Skill5.2k starsChanged 2 months agoMITView on GitHub

Write and modify Scala code in SynapseML. Use when adding or changing Scala transformers, estimators, or params to follow repo patterns, keep scalastyle and compilation green, and cover behavior changes with tests.

Trending

Quiet since June.about the whole repository

Dec 2025: 1 mentionJan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 1 mentionApr 2026: 0 mentionsMay 2026: 0 mentionsJun 2026: 1 mentionJul 2026: 0 mentionsAug 2026: 0 mentionsSep 2026: 0 mentionsOct 2026: 0 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the microsoft/SynapseML repository that our weekly crawl found. There is no adoption data for this file yet.

Who's talking about microsoft/SynapseML

The biggest 5 of 22 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 22

Talked about on GitHub (22 times).

On GitHub · 22

17 more on GitHub

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
  • could be automatic: a setting could enforce it
  1. Distinctive:

    Use this skill for any Scala code change in this repository.

    line 8
  2. Distinctive:

    Keep Scala changes correct, minimal, and production-safe.

    line 11
  3. Distinctive:

    Ensure every behavior change is covered by tests.

    line 13
  4. Very specific:

    Follow existing SynapseML patterns (DefaultParamsReadable, DefaultParamsWritable, Wrappable, SynapseMLLogging).

    line 17
  5. Distinctive:

    Keep business logic in Scala (not generated Python wrappers).

    line 18
  6. Very specific:

    Do not edit generated files under target/.

    line 19
  7. Distinctive:

    Prefer small, focused changes and reuse existing helpers/traits.

    line 21
  8. Distinctive:

    Avoid introducing flaky tests or network-dependent behavior unless already required by the suite.

    line 22
  9. Distinctive:

    Run these commands before finishing Scala changes:

    line 26
  10. Distinctive:

    If a command fails, fix the issue and rerun until passing.

    line 36
  11. Distinctive:

    Keep tests deterministic and aligned with current module test conventions.

    line 42

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

Scala Code Skill

Use this skill for any Scala code change in this repository.

Objectives

  • Keep Scala changes correct, minimal, and production-safe.
  • Prevent CI/CD breakage by validating style and compilation before completion.
  • Ensure every behavior change is covered by tests.
  • Scala code should be optimized to be efficient and maintainable, following existing patterns and practices in the codebase.

Scala best practices

  • Follow existing SynapseML patterns (DefaultParamsReadable, DefaultParamsWritable, Wrappable, SynapseMLLogging).
  • Keep business logic in Scala (not generated Python wrappers).
  • Do not edit generated files under target/.
  • Preserve license headers and existing package structure.
  • Prefer small, focused changes and reuse existing helpers/traits.
  • Avoid introducing flaky tests or network-dependent behavior unless already required by the suite.
  • To get around scalastyle issues, don't just use // scalastyle:off or //scalastyle:ignore, but instead fix the underlying issue or refactor to avoid it. Unless, the refactor results in a more complex code structure, in which case, it may be acceptable to disable the specific scalastyle rule for that line or block of code, but this should be done sparingly and with justification.

Required validation steps (must run)

Run these commands before finishing Scala changes:

  1. Scala style checks:
    • sbt scalastyle "Test / scalastyle"
  2. Scala compile checks:
    • sbt compile
    • sbt test:compile
  3. Relevant tests for touched modules/files:
    • Example: sbt "core/testOnly *SuiteName*" or sbt "cognitive/testOnly *SuiteName*"

If a command fails, fix the issue and rerun until passing.

Testing requirement for code changes

  • Any Scala code change must be accompanied by tests (new tests or updates to existing tests).
  • Bug fixes must include a regression test that fails before the fix and passes after.
  • New logic/branches should include coverage for success and failure/edge cases where practical.
  • Keep tests deterministic and aligned with current module test conventions.

Completion checklist

  • Code follows existing Scala/SynapseML conventions.
  • Style checks pass.
  • Compile checks pass.
  • Relevant tests pass.
  • Scala code changes include corresponding tests.

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.