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.
mdr add michaelshimeles/skills/code-structure@git:20261015.ababbf7Pins 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
mdr add michaelshimeles/skills/code-structure@sha256:aa2e0e88c3b37148The 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.
[](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.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20261015.ababbf7 latest | 2026-10-15 | ababbf7 | 5,060 B | A | view · diff |
| git:20260713.c7f7e91 | 2026-07-13 | c7f7e91 | 4,586 B | A | view |
Audit of the latest version
- 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
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
Every file in michaelshimeles/skills