Skip to content
Skillv1.0.0

rules-code

Project Coding Rules (Non-Obvious Only)

by ololoshka2871(0) 0 installs
Free
Sign in to install

Free account. Installing gives you the manifest plus copy-paste snippets.

See reviews

About

Imported from ololoshka2871/stm32-usb-self-writer (.roo/rules-code/AGENTS.md). Install upstream with npx skills add ololoshka2871/stm32-usb-self-writer --skill rules-code. Copyright stays with the author.

Project Coding Rules (Non-Obvious Only)

  • FreeRTOS allocator required - Must use freertos_rust::FreeRtosAllocator as global allocator
  • Dual-mode trait pattern - All work modes implement WorkMode<T> trait with specific initialization sequence
  • Unsafe peripheral access - Uses unsafe { cortex_m::Peripherals::take().unwrap_unchecked() } pattern
  • Feature-gated debug code - Debug assertions control master_value_stat module inclusion
  • Custom CRC configuration - CRC module uses byte reversal for zlib compatibility (result must be inverted)
  • No-std environment - Project uses #![no_std] with custom allocator and panic handler
  • Protobuf generation - Build script generates protobuf code from ProtobufDevice_0000E006.proto

Use it

Copy one of these into your project. Installing also returns the manifest and these snippets.

yaml
targets:
  - https://api.opensmartroute.ai/api/v1/registry/ololoshka2871-stm32-usb-self-writer-rules-code/manifest   # or paste the manifest below

Manifest

An Open Capability Manifest: the router reads it to know what this does, what it costs and when to pick it.

ololoshka2871-stm32-usb-self-writer-rules-code.ocm.jsonjson
{
  "ocm": "1",
  "id": "ololoshka2871-stm32-usb-self-writer-rules-code",
  "kind": "skill",
  "name": "rules-code",
  "description": "Project Coding Rules (Non-Obvious Only)",
  "publisher": "ololoshka2871",
  "version": "1.0.0",
  "capabilities": {
    "domains": [
      "coding"
    ],
    "tags": [
      "skill-md",
      "github-agents"
    ],
    "languages": [
      "en"
    ]
  },
  "quality_prior": 0.6,
  "examples": [
    "Project Coding Rules (Non-Obvious Only)"
  ],
  "primary": false,
  "metadata": {
    "source": {
      "provider": "github-agents",
      "repository": "https://github.com/ololoshka2871/stm32-usb-self-writer",
      "path": ".roo/rules-code/AGENTS.md",
      "ref": "f02fba8072d4baf87474f4a34fe6c4bf9c1f6da6",
      "url": "https://github.com/ololoshka2871/stm32-usb-self-writer/blob/f02fba8072d4baf87474f4a34fe6c4bf9c1f6da6/.roo/rules-code/AGENTS.md",
      "key": "ololoshka2871/stm32-usb-self-writer/.roo/rules-code/AGENTS.md"
    }
  },
  "instructions": "# Project Coding Rules (Non-Obvious Only)\n\n- **FreeRTOS allocator required** - Must use `freertos_rust::FreeRtosAllocator` as global allocator\n- **Dual-mode trait pattern** - All work modes implement `WorkMode<T>` trait with specific initialization sequence\n- **Unsafe peripheral access** - Uses `unsafe { cortex_m::Peripherals::take().unwrap_unchecked() }` pattern\n- **Feature-gated debug code** - Debug assertions control `master_value_stat` module inclusion\n- **Custom CRC configuration** - CRC module uses byte reversal for zlib compatibility (result must be inverted)\n- **No-std environment** - ",
  "cost": {
    "context_tokens": 191
  }
}

Fetch it by URL: GET /api/v1/registry/ololoshka2871-stm32-usb-self-writer-rules-code/manifest?version=1.0.0

Reviews

Star ratings from people who tried it. One review per account; edit yours any time.

No reviews yet. Install it, try it, and be the first to rate it.

rules-code - Skill - OpenSmartRoute