Skip to content
Prompt

json-zig — Copilot Instructions

by joechung2008

AI Summary

Heuristic scoring (no AI key configured).

Install

Copy this and paste it into Claude Code, Cursor, or any AI assistant:

I want to add the "json-zig — Copilot Instructions" prompt rules to my project.
Repository: https://github.com/joechung2008/json-zig

Please read the repo to find the rules/prompt file, then:
1. Download it to the correct location (.cursorrules, .windsurfrules, .github/prompts/, or project root — based on the file type)
2. If there's an existing rules file, merge the new rules in rather than overwriting
3. Confirm what was added

Description

Copilot Instructions for json-zig

🎯 Project Overview

A complete JSON parser implementation ported from TypeScript to Zig 0.15.1, demonstrating faithful architectural patterns while leveraging Zig's memory safety and performance characteristics.

✨ Features & Capabilities

• 🔍 Complete JSON Parsing - Supports all JSON types: strings, numbers, booleans, null, arrays, objects • 🛡️ Memory Safe - Proper allocation/deallocation with no memory leaks • ⚡ High Performance - Zig's zero-cost abstractions and compile-time optimizations • 🎯 Standards Compliant - Follows JSON specification from json.org • 🧪 Thoroughly Tested - Comprehensive unit test suite with 68 test cases • 📝 Unicode Support - Full UTF-8 and Unicode escape sequence handling • 🔧 CLI Tool - Command-line interface for parsing JSON from stdin • 🤖 CI/CD Ready - GitHub Actions workflow with multi-optimization testing

🎯 Supported JSON Features

| Feature | Support | Implementation Notes | | ---------- | ------- | -------------------------------------------------------- | | Numbers | ✅ | Integers, floats, scientific notation | | Strings | ✅ | UTF-8, escape sequences (\n, \t, \", \\, \/, \b, \f, \r) | | Unicode | ✅ | \uXXXX escape sequences with proper UTF-8 encoding | | Booleans | ✅ | true, false literals | | Null | ✅ | null literal | | Arrays | ✅ | Nested arrays, mixed types, comma separation | | Objects | ✅ | Nested objects, string keys, key-value pairs | | Whitespace | ✅ | Flexible whitespace handling (spaces, tabs, newlines) |

Adding New Features

• Implement in the appropriate module under lib/src/ • Test comprehensively with unit tests • Document in code comments and update README if needed • Validate with zig build test and memory leak checks • Performance test with realistic JSON samples

Discussion

0/2000
Loading comments...

Health Signals

MaintenanceCommitted 6mo ago
Stale
AdoptionUnder 100 stars
0 ★ · Niche
DocsMissing or thin
Undocumented

GitHub Signals

Issues0
Updated6mo ago
View on GitHub
MIT License

My Fox Den

Community Rating

Sign in to rate this booster

Works With

Any AI assistant that accepts custom rules or system prompts

Claude
ChatGPT
Cursor
Windsurf
Copilot
+ more