agentleFS
orchnesaiorchnesai/orchnes-360/skills/software-engineering/SKILL.md

software-engineering

Skill3 starsChanged 8 days agoMITView on GitHub

Core software engineering discipline for any project type (web, backend, mobile, desktop, embedded/IoT, CLI/library, data/ML, games, distributed/cloud) — architecture layers and dependency rules, cross-cutting concerns, change workflow, testing and code quality checklists. Use when writing, changing, reviewing or structuring code, deciding where code belongs, designing modules, or when the user asks about architecture, layers, clean code, best practices or "is this the right way".

10 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use testing and code-review.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • NVIDIASkill

    testing

    Run Python and Rust tests for physicsnemo-curator using uv + pytest with coverage reporting via pytest-cov, and cargo-nextest for Rust tests. Includes benchmark workflows with pytest-benchmark and criterion.

    Also in 3 projects that use this

  • GoogleSkill

    code-review

    Adversarial systems, concurrency, memory-model, and architecture code review protocol. Use this skill whenever asked to review code, PRs, diffs, or branches in Filament.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

4 rules. 0 are common, 4 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 10 edited versions we read keep these.

  • 4

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Follow the codebase's existing patterns: before introducing new ones.

    line 31
  2. Distinctive:

    Write/adjust a failing test that captures the requirement (or the bug).

    line 41
  3. Distinctive:

    Run linters, type checks and the relevant test suite.

    line 43
  4. Distinctive:

    Test behavior, not implementation details.

    line 50

“Common” is measured: kept by at least 6 in 10 of the 10 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

Software Engineering

1. Identify the project type first

Detect from manifests and structure (package.json, pubspec.yaml, Cargo.toml, CMakeLists/platformio.ini, pyproject + notebooks, Unity/Godot files, Dockerfile/k8s manifests …). Then read only the matching file in references/types/:

TypeFile
Web frontend + backend/APIreferences/types/web.md
Mobile (iOS, Android, cross-platform)references/types/mobile.md
Desktopreferences/types/desktop.md
Embedded / IoT / firmwarereferences/types/embedded.md
CLI tools & libraries/SDKsreferences/types/cli-library.md
Data pipelines & MLreferences/types/data-ml.md
Gamesreferences/types/game.md
Distributed / cloud-nativereferences/types/distributed.md

Mixed projects: read each relevant file. Shared vocabulary for all types: references/architecture-layers.md.

2. Universal rules

  1. Dependencies point inward. Business/domain logic never imports UI, framework, DB or network code. Outer layers depend on inner ones through interfaces (ports/adapters).
  2. One reason to change per module. Split when a file mixes layers or concerns.
  3. Follow the codebase's existing patterns before introducing new ones. Consistency beats personal taste.
  4. Make the change easy, then make the easy change. Refactor in a separate step from behavior change.
  5. Boundaries validate; the core trusts. Validate and convert input at the edge (API, UI, sensor, file); inside, use typed, already-valid data.
  6. Errors are part of the design. Decide per layer: recover, translate, or propagate. Never swallow silently.
  7. No hidden global state. Pass dependencies explicitly; this is what makes code testable.

3. Change workflow

  1. Understand: locate the code, read its tests, find callers.
  2. Decide the layer the change belongs in (section 1 file).
  3. Write/adjust a failing test that captures the requirement (or the bug).
  4. Smallest change to pass. Then refactor while green.
  5. Run linters, type checks and the relevant test suite.
  6. Review your own diff: scope creep, debug leftovers, missing error paths, secrets.

4. Testing pyramid

  • Unit (many, fast): domain rules, pure functions.
  • Integration (some): adapters against real DB/queue/filesystem or faithful fakes.
  • End-to-end (few): critical user journeys only. Test behavior, not implementation details. Each bug fix ships with a regression test.

5. Cross-cutting checklist (every change)

  • Security: input validation, authz checks, no secrets in code/logs, dependencies pinned
  • Errors: handled at the right layer, useful messages, no silent catch
  • Observability: meaningful logs/metrics at boundaries, no noisy logs in hot paths
  • Performance: no N+1 queries, no unbounded loops/memory, work off the hot/UI thread
  • Config: environment-specific values externalized, sane defaults
  • Compatibility: public APIs, data formats and migrations stay backward compatible or are versioned
  • Accessibility & i18n (user-facing code)
  • Docs: public interfaces and non-obvious decisions documented

6. Code review smells

Layer violations (SQL in UI, HTTP in domain) · god classes/files · duplicated logic · boolean-flag parameters · deep nesting · magic numbers · comments that restate code · dead code · tests that mock everything.

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.