c-code-style

c-code-style

C code style and coding rules, accompanied by an AI agent skill for writing, editing, and formatting code.

Agent SkillDevOpen sourceC 语言代码风格AI 代理
Type
Agent Skill
Open source
Yes
GitHub Stars
★ 1.3k
Source
skill-github

Overview

c-code-style is a recommended standard C code style and coding rules for C99 or later. It provides an AI agent skill to assist with writing, editing, and formatting code. The skill can be integrated into VSCode and uses clang-format to automatically format code. Suitable for developers and teams requiring consistent code styling.

Capabilities

  • Write code compliant with C99 standard
  • Edit existing code while maintaining consistent style
  • Automatically format code
  • Integrate with VSCode and clang-format

Use cases

Writing code for new C projectsMaintaining consistent code style in existing C projectsAutomating code formatting checks

Setup

Requires: VSCodeclang-format
Copy the `.clang-format` file to the project root directory and configure the clang-format extension in VSCode.

This information was compiled by AI from public sources and may contain inaccuracies — please refer to the source.

FAQ

How to enable clang-format in VSCode?

Install the clang-format extension and configure the relevant settings.

Is support available for other editors?

Yes, clang-format can be used from the command line or any editor.

Related skills