agentleFS
YauhenBichelYauhenBichel/engineering-skills/skills/algorithms/SKILL.md

algorithms

Skill0 starsChanged 53 days agoApache-2.0View on GitHub

Chooses and implements the right algorithm and data structure. Use for performance-sensitive logic or interview-style problems.

4 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

3 rules. 0 are common, 2 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 4 edited versions we read keep these.

  • 2

    Distinctive

    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:

    Write a brute-force reference implementation in test_brute.py.

    line 12
  2. Distinctive:

    Run random test generation against both versions.

    line 13
  3. Distinctive:

    Test script output showing random match results

    line 29

“Common” is measured: kept by at least 6 in 10 of the 4 edited versions of this file we could read. “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

Steps

  1. State input size and needed complexity first.
  2. Pick data structures for required operations.
  3. Implement the solution using the chosen structures.
  4. Calculate time and space complexity.
  5. Handle edge cases: empty input, single element, duplicates, huge inputs.
  6. Write a brute-force reference implementation in test_brute.py.
  7. Run random test generation against both versions.
  8. Compare outputs and fix mismatches.

Checklist

  • Input size and complexity stated upfront
  • Data structures match operation requirements
  • Time and space complexity explained
  • Edge cases covered (empty, one, duplicates, huge)
  • Brute-force version written and tested
  • Random inputs pass both implementations
  • No external dependencies added
  • Code runs in under target time limit

Output

  • Complexity analysis and chosen data structures
  • Optimized implementation with edge case handling
  • Test script output showing random match results
  • Brief explanation of why the approach fits the constraints

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.