code-structure SKILL.md skillA

code-structure from michaelshimeles/skills is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add michaelshimeles/skills/code-structure@git:20261015.ababbf7

Pins git:20261015.ababbf7 in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
michaelshimeles/skills
Path
code-structure/SKILL.md
Versions recorded
2
Latest version
git:20261015.ababbf7, committed Oct 15, 2026
First version recorded
Jul 13, 2026
Size
5,060 bytes
Repository stars
1,373
License
none declared

Use when multiple workflows duplicate the same operational logic, when deciding what belongs in actions vs shared services, or when refactoring repeated operational blocks across domain flows. Use when adding new features that share mechanics with existing ones.

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# Service Layer Architecture

## Overview

This collection prefers a two-layer separation: actions orchestrate domain
rules, while services implement reusable operations. Use it where the project
has no established convention. Preserve existing domain services, repositories,
transaction boundaries, and framework patterns when they already fit the task.

This prevents duplicated code, inconsistent behavior, and bugs fixed in one path but not others.

## When to Use

- Multiple callers need the same low-level operation (sandbox creation, email sending, payment processing)
- You're copy-pasting operational logic between action files
- A bug fix in one workflow doesn't propagate to others doing the same thing
- Adding a new feature that shares mechanics with existing flows

Avoid extraction that adds indirection without a concrete benefit. Repetition
is a useful signal, but a single caller can justify a boundary for testing,
provider isolation, transactions, or complex logic.

## Core Pattern

```
Orchestration Layer (Actions)          Service Layer (Shared Mechanics)
├── owns business rules                ├── owns reusable operations
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add michaelshimeles/skills/code-structure@sha256:aa2e0e88c3b37148

The line at the top of this page pins the label git:20261015.ababbf7, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_uxhluvnyop5bnl56.svg)](https://markdownregistry.com/a/art_uxhluvnyop5bnl56)

2 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 2 versions of this file, between Jul 13, 2026 and Oct 15, 2026, about one every 94 days.

versioncommittedcommitsizeaudit
git:20261015.ababbf7 latest2026-10-15 ababbf7 5,060 BA view · diff
git:20260713.c7f7e912026-07-13 c7f7e91 4,586 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (5060 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

michaelshimeles/skills · 1,373 stars · license none declared · pushed 2026-10-19 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_uxhluvnyop5bnl56
GET https://markdownregistry.com/api/v1/resolve?ref=michaelshimeles/skills/code-structure
GET https://markdownregistry.com/api/v1/blob/aa2e0e88c3b3714898236d5f65e4102e21b43747de99ae503dfc15102aae6ba4

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.

More from michaelshimeles/skills

AGENTS.md AGENTS.md file
michaelshimeles/skills · AGENTS.md
git:20261015.ababbf7 · audit A · 1,373 stars
before-and-after SKILL.md skill
michaelshimeles/skills · before-and-after/SKILL.md · Captures before/after screenshots of web pages or elements for visual comparison. Use when user says "take before and…
git:20261019.69558ea · audit A · 1,373 stars
evidence-driven-testing SKILL.md skill
michaelshimeles/skills · evidence-driven-testing/SKILL.md · Records visual proof while testing UI behavior — the agent tests the app hands-on via computer use while a screen…
v1.2 · audit A · 1,373 stars
greploop-apps SKILL.md skill
michaelshimeles/skills · greploop-apps/SKILL.md · Run the greploop workflow with the @greptile-apps trigger when the normal trigger refuses a large PR. Requires the…
v2.0 · audit A · 1,373 stars
greploop SKILL.md skill
michaelshimeles/skills · greploop/SKILL.md · Address Greptile feedback on a PR, MR, or shelved changelist through bounded review and fix cycles. Use when the task…
v2.0 · audit A · 1,373 stars
new-feature SKILL.md skill
michaelshimeles/skills · new-feature/SKILL.md · Isolate repository edits in a Git worktree before starting a feature, fix, or documentation change. Preserve a worktree…
git:20261015.ababbf7 · audit A · 1,373 stars
unslop SKILL.md skill
michaelshimeles/skills · unslop/SKILL.md · Cut AI tells from text you write or edit for a human reader (commit messages, PR titles and bodies, docs, code…
git:20260904.a007fcd · audit A · 1,373 stars

Every file in michaelshimeles/skills

Other files named code-structure

code-structure SKILL.md skill
rikvanriel/code-hygiene · skills/code-structure/SKILL.md · Use when a function is too long, nests too deep, or mixes themes. Extracts helpers that earn their names.
v1.0.1 · audit A · 2 stars

Browse by kind, by grade A, or by owner.