Meddev Separation Of Concerns logo

Meddev Separation Of Concerns

Community
AminAlam
meddev-separation-of-concerns

Define architectural partitioning to contain failures, simplify verification, and align safety classes with appropriate isolation. Use when working on separation of concerns in medical device software.

Overview

PublisherAminAlam
Repositorymeddev-agent-skills
Skill namemeddev-separation-of-concerns
Stars
40
Forks
8
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by AminAlam on GitHub. Read the source before you install it.

Installation

Install the Meddev Separation Of Concerns AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/AminAlam/meddev-agent-skills/tree/main/skills/meddev-separation-of-concerns
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/AminAlam/meddev-agent-skills.git /tmp/meddev-agent-skills
mkdir -p .claude/skills
cp -r /tmp/meddev-agent-skills/skills/meddev-separation-of-concerns .claude/skills/meddev-separation-of-concerns
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Meddev Separation Of Concerns in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Meddev Separation Of Concerns on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Meddev Separation Of Concerns is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Separation of Safety-Critical Concerns

Purpose

Define architectural partitioning to contain failures, simplify verification, and align safety classes with appropriate isolation.

When to Apply

  • Designing or refactoring architecture for mixed-criticality systems.
  • Introducing new subsystems with different safety impacts (e.g., UI vs control).
  • Adding third-party/SOUP modules or connectivity stacks near safety logic.

Requirements (testable)

  1. Partitioning: Separate safety-critical from non-critical components using process/MPU/MMU or language-level isolation; document boundaries. Rationale: fault containment.
  2. Minimal Interfaces: Keep interfaces between partitions minimal and typed; avoid shared mutable state. Rationale: reduce coupling and fault vectors.
  3. Validation at Boundaries: Validate all data crossing partitions (lengths, ranges, CRC/MAC); enforce timeouts and error handling. Rationale: prevent propagation.
  4. Principle of Least Privilege: Assign minimal privileges to non-critical partitions; restrict syscalls/IO where possible. Rationale: limit impact of compromise.
  5. Monitoring: Add health monitoring/heartbeats for critical partitions; safe fallback on failure. Rationale: detect and react to partition failure.
  6. Testability: Provide mocks/stubs for non-critical partitions to test critical logic deterministically. Rationale: reliable verification.

Recommended Practices

  • Use message queues or well-defined RPC instead of shared globals.
  • Define data transfer objects (DTOs) with explicit versioning and size fields.
  • Apply static analysis to enforce layering (no upward dependencies).
  • Consider dual-core separation if hardware supports, with strict comms.

Patterns

DTO with size and CRC:

c
// REQ-SEP-IF-01; TEST-SEP-04
typedef struct {
    uint16_t len;
    uint16_t crc;
    uint8_t payload[48];
} msg_t;

bool validate_msg(const msg_t *m) {
    if (m->len > sizeof(m->payload)) return false;
    return crc16(m->payload, m->len) == m->crc;
}

Partition watchdog:

c
// REQ-SEP-MON-02; TEST-SEP-09
void monitor_control_partition(void) {
    if (!heartbeat_ok()) {
        enter_safe_state(); // stop outputs, alarm
    }
}

Anti-Patterns (risks)

  • Shared global buffers between UI and control logic -> risk: corruption.
  • Unbounded/unvalidated IPC -> risk: DoS or malformed data affecting safety.
  • Broad privileges for non-critical services -> risk: escalation into safety domain.
  • Hidden backdoors (debug UART) bridging partitions -> risk: bypassing controls.

Verification Checklist

  • Partitions defined; safety-critical isolated from non-critical.
  • Interfaces documented and minimal; no shared mutable state across classes.
  • Boundary validation implemented (size/range/CRC/MAC, timeouts).
  • Privileges for non-critical partitions minimized.
  • Monitoring/heartbeat for critical partition with safe fallback.
  • Mocks/stubs available for testing critical logic without non-critical code.

Traceability

  • Map partitions to safety classes and hazards; link interface validation tests (TEST-SEP-###).
  • Maintain an interface contract document; tie to architecture diagrams.

References

  • IEC 62304 segregation intent (5.3).
  • ISO 26262 Part 6 (informative for mixed-criticality partitioning concepts).
  • SEI CERT C and MISRA guidance on shared state avoidance (informative).

Changelog

  • 1.0.0 (2026-01-04): Initial partitioning guidance with boundary validation and monitoring.

Audit History

  • 2026-01-04: Audit performed. Verified:
    • IEC 62304 segregation intent correctly referenced to clause 5.3
    • ISO 26262 Part 6 reference appropriate as informative for mixed-criticality concepts
    • SEI CERT C and MISRA guidance correctly marked as informative

Frequently asked questions

What does the Meddev Separation Of Concerns AI skill do?

Define architectural partitioning to contain failures, simplify verification, and align safety classes with appropriate isolation. Use when working on separation of concerns in medical device software.

Why use Meddev Separation Of Concerns on TypingMind?

Because you install it once and use it with any model. Meddev Separation Of Concerns is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Meddev Separation Of Concerns in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/AminAlam/meddev-agent-skills/tree/main/skills/meddev-separation-of-concerns. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Meddev Separation Of Concerns?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Meddev Separation Of Concerns?

As many as you like. As long as a model supports skills, you can use Meddev Separation Of Concerns with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Meddev Separation Of Concerns AI skill free?

Yes. It is published on GitHub by AminAlam under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇