toolshed Cursor Rules — Cursor Rules | Neura Market
    Neura MarketNeura Market/Cursor
    ChatGPTChatGPTClaudeClaudeGeminiGeminiCursorCursorGrokGrokPerplexityPerplexityDeepSeekDeepSeek
    CoPilotCoPilotStable DiffusionStable DiffusionMidjourneyMidjourney
    View All Directories
    OverviewRulesPromptsMCPsAgentsBlogVideosGuidesCoursesCommunityExtensionsTrendingGenerate
    CursorRulestoolshed Cursor Rules
    Back to Rules
    Systems Programming

    toolshed Cursor Rules

    hathaway3 April 15, 2026
    0 copies 0 downloads

    - ALWAYS run `git pull` and `git status` BEFORE any work.

    Rule Content
    // Project Context: ToolShed (Tandy CoCo / Dragon 32/64 Toolset)
    // Primary Developer: jimhathaway
    // Core Tech: C (Libraries/Tools), 6809 Assembly (Firmware via LWTOOLS)
    
    // MANDATORY WORKFLOWS
    - ALWAYS run `git pull` and `git status` BEFORE any work.
    - DO NOT start a task without an implementation plan (unless trivial).
    - STRICTLY follow LLM routing rules from `local-preference.md`:
      - Plan/Architect: Cursor 3 (Cloud)
      - Execute/Boilerplate/Tests: Gemma 3 (Local)
      - Context/Batch/Huge Logs: Gemma 3 (Remote Server)
    
    // TECHNICAL DIRECTIVES
    - Prioritize OS9 Path and RBF Caching logic in `librbf`.
    - Follow `libtoolshed`, `libdecb`, and `libcecb` conventions.
    - Use `lwasm` for 6809 firmware; avoid legacy assemblers.
    - Use the central `tests/` directory for any new tests.
    
    // MEMORY SAFETY (CRITICAL — prevents Abort trap: 6)
    - NULL-initialize ALL os9_path_id pointers at declaration.
    - Set pointer to NULL IMMEDIATELY after every term_pd(), _os9_close(), or free().
    - Use "Single Exit" pattern with `goto clean;` — never free at multiple return points.
    - Use DEBUG_PRINT() from `include/debug.h` for allocation tracing (no-op without -DDEBUG).
    
    // TESTING CONVENTIONS
    - Test framework: tinytest (header in `unittest/tinytest.h`).
    - New tests go in `tests/`; build system has dual vpath for `unittest/` and `tests/`.
    - Any librbf pointer change MUST include: NULL-close test, failed-open pointer test, 50x stress test.
    - Run: `cd build/unix/unittest && make test` to verify all suites.
    
    // IDE & TOOLING
    - `.clangd` uses RELATIVE paths only — never hardcode `/Users/username/...`.
    - clangd lint errors about missing headers that compile fine with `-Werror` are IDE config, not source bugs.
    
    // DESIGN DIRECTIVES
    - Web UI: MUST use a "Premium Retro" CRT Terminal aesthetic.
    - Aesthetics: High-end, polished, modern glassmorphism + vintage phosphor effects.
    - Images: Generate high-quality assets via `generate_image`, never use placeholders.
    
    // PERFORMANCE
    - FS changes must be verified with sector read/write stress tests.
    - Latency and sector-aware caching (LSN0) are critical for emulation accuracy.
    
    // DOCUMENTATION
    - References: `AGENT_RULES.md` for detailed guidelines.
    - Build System: Use root `Makefile` (delegates to `build/unix`).
    
    

    Tags

    go

    Comments

    More Rules

    View all
    Web Development

    Next.js 15 + TypeScript Cursor Rules

    Comprehensive .cursorrules file for Next.js 15 App Router projects with TypeScript, enforcing server components by default, proper use of "use client" directive, and App Router conventions.

    C
    Community
    Backend Development

    Python FastAPI Best Practices Rules

    Cursor rules for Python FastAPI projects enforcing async patterns, Pydantic v2 models, dependency injection, and proper error handling.

    C
    Community
    Frontend Development

    React + TypeScript Component Rules

    Rules for consistent React component development with TypeScript interfaces, proper hook patterns, and component composition.

    C
    Community
    AI/ML

    Cursor Agent Mode Configuration

    Rules optimizing Cursor Agent mode behavior including multi-file editing context, session management, and autonomous task completion patterns.

    C
    Cursor Team
    Frontend Development

    Tailwind CSS + shadcn/ui Rules

    Cursor rules for projects using Tailwind CSS with shadcn/ui component library, enforcing consistent utility class usage and component patterns.

    C
    Community
    Backend Development

    Go Backend Service Rules

    Rules for Go backend services enforcing idiomatic Go patterns, proper error handling, and clean architecture conventions.

    C
    Community

    Stay up to date

    Get the latest Cursor prompts, rules, and resources delivered to your inbox weekly.

    Neura Market LogoNeura Market

    Discover the best AI prompts, plugins, and resources for Cursor and more.

    Content Types

    • Rules
    • Prompts
    • MCPs
    • Agents
    • Guides

    Platforms

    • ChatGPT Directory
    • Claude Directory
    • Gemini Directory
    • Cursor Directory
    • Grok Directory
    • Perplexity Directory
    • DeepSeek Directory
    • CoPilot Directory
    • Stable Diffusion Directory
    • Midjourney Directory
    • All Directories

    Resources

    • Blog
    • Documentation
    • Help Center
    • Marketplace

    Legal

    • Privacy Policy
    • Terms of Service

    © 2026 Neura Market. All rights reserved.

    |

    Not affiliated with any AI platform vendors.