7etsuo GitHub avatar

write-legible-c

7etsuo

A Grok Build plugin that enforces a strict C11 machine-legibility standard when creating, refactoring, debugging, fixing, reviewing, or presenting C code.

Stars

22

7-day growth

No data

Forks

1

Open issues

1

License

MIT

Last updated

2026-08-01

AI repository intelligence
FR-AI / ANALYSIS

Why it is worth attention

It packages a detailed, opinionated C11 coding standard into an installable, auto-loading Grok skill, with concrete rules for file layout, naming, function roles, error handling, loop bounds, and assertion density.

Who it is for

  • C developers using Grok Build
  • Teams standardizing C11 code style
  • Technical leads enforcing code quality in C projects
  • Grok plugin users who want automated coding standards

Use cases

  • Enforcing consistent C file layout and naming conventions during development
  • Reviewing C code for bounded loops, recursion, and naked literals
  • Refactoring legacy C code into orchestrator, leaf, and adapter functions
  • Standardizing status enums and MODULE_TRY error-handling patterns

Strengths

  • Ships a complete 18-section C standard in the repository
  • Provides automatic skill loading when C files are created, changed, or reviewed
  • Includes concrete rules such as no recursion, no naked literals, and assertion density on mutators
  • Offers multiple installation paths: marketplace, one-shot plugin URL, and local clone

Considerations

  • Requires Grok Build plugin infrastructure to run
  • Standards are C11-specific and not applicable to other languages
  • The strict normative standard may require significant refactoring of existing C code

README quick start

write-legible-c

Grok Build plugin that enforces a strict C11 machine-legibility standard when creating, refactoring, debugging, fixing, reviewing, or presenting C code.

It ships one skill, /write-legible-c, plus the full normative standard in references/c-standard.md (file layout, naming, orchestrator/leaf/adapter split, status enums + MODULE_TRY, bounded loops, assertion density, section-16 near-miss refactors, and repository-level AGENTS.md rules).

Install (recommended)

Add this marketplace, then install the plugin:

grok plugin marketplace add 7etsuo/write-legible-c
grok plugin install write-legible-c --trust

Enable it if it shows as installed but inactive:

grok plugin enable write-legible-c

Or in the TUI: /plugins → Plugins tab → select write-legible-cSpace to enable → r to reload (or start a new session).

One-shot install from the plugin path

grok plugin install 7etsuo/write-legible-c#plugins/write-legible-c --trust

Local clone

git clone https://github.com/7etsuo/write-legible-c.git
grok plugin marketplace add ./write-legible-c
grok plugin install write-legible-c --trust

Use

  • Slash command: /write-legible-c
  • Skills menu: /skills write-legible-c
  • Auto: Grok loads the skill when you create, change, or review C (.c / .h)

What you get

plugins/write-legible-c/
  plugin.json
  skills/write-legible-c/
    SKILL.md
    references/c-standard.md   # full 18-section standard

Highlights from the standard:

  • Fixed file layout and greppable module prefixes
  • Status enums, boundary validation, MODULE_TRY only on non-acquiring paths
  • Orchestrator / leaf / adapter function altitudes
  • No naked literals (except obvious 0/1), named constants, designated inits
  • Bounded loops, no recursion, early returns, assert density on mutators
  • Section 16 near-miss diagnosis before accepting “already clean” C

Uninstall

grok plugin uninstall write-legible-c --confirm
# optional: drop the marketplace source
grok plugin marketplace remove 7etsuo/write-legible-c

Validate (maintainers)

grok plugin validate ./plugins/write-legible-c

License

MIT. The C standard text is part of this repository under the same license.

Description

Grok Build plugin: strict C11 machine-legibility standard for writing and reviewing C

Related repositories

Similar projects matched by category, topics, and programming language.

MoonshotAI
Featured
MoonshotAI GitHub avatar

Kimi-K3

Kimi K3 is an open-weight, 2.8T-parameter native multimodal agentic model with a 1M-token context window, designed for frontier coding, knowledge work, and reasoning tasks.

AI & Machine LearningAI Agents
3,348
xuchonglang
Featured
xuchonglang GitHub avatar

investing-for-beginners

A structured investing guide for Chinese beginners covering US stocks, options, and cryptocurrency, with focus on foundational concepts and risk awareness.

Blockchain & Web3
2,739
Krishnagangwal
Featured
Krishnagangwal GitHub avatar

CS-Fundamentals

A curated collection of Computer Science fundamentals (PDFs, notes, cheatsheets, interview question banks) for placement preparation, covering seven core subjects plus general resources.

Data & DatabasesDatabases & Storage
2,326