cangjie-cjfmt

Format Cangjie code files and directories using the cjfmt tool.

2|Updated Mar 10, 2026
One-click install
npx skills add https://github.com/zhenzhizhi12/NexusAgent --skill cangjie-cjfmt-zhenzhizhi12
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cangjie-cjfmt
Source: https://github.com/zhenzhizhi12/NexusAgent/tree/main/.opencode/skills/common-skill-l1/cjfmt
Command: npx skills add https://github.com/zhenzhizhi12/NexusAgent --skill cangjie-cjfmt-zhenzhizhi12

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill automates the formatting of Cangjie code, ensuring consistency and adherence to established coding standards, which can be time-consuming to do manually.

Core Features & Use Cases

  • Code Formatting: Applies standard formatting rules to Cangjie source files.
  • Configuration: Supports custom formatting rules via a TOML configuration file.
  • Use Case: When you have a new Cangjie codebase or need to ensure a consistent style across multiple files, use this Skill to apply the cjfmt tool.

Quick Start

Format the Cangjie file located at '/path/to/your/code.cj' using the cjfmt tool.

Frequently Asked Questions about cangjie-cjfmt

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I format Cangjie code automatically?

You format Cangjie code automatically by applying the cjfmt tool to source files, ensuring consistency and adherence to established coding standards.

Can I format a specific line range in a Cangjie file?

Yes, cjfmt supports line-range formatting, allowing you to target specific sections of a Cangjie file rather than processing the entire document.

Do I need to install the cjfmt executable to format Cangjie code?

Yes, formatting Cangjie code requires the cjfmt executable to be available in your system's PATH environment.

How do I apply custom formatting rules to a Cangjie codebase?

You apply custom formatting rules to a Cangjie codebase by specifying a TOML configuration file when executing the cjfmt tool.

Can I redirect the formatted Cangjie code output to a different file?

Yes, cjfmt supports output redirection, allowing you to save formatted Cangjie code results to a separate file instead of overwriting the original source.

What is the best way to ensure consistent style across multiple Cangjie files?

The best way to ensure consistent style across multiple Cangjie files is to run cjfmt on the entire directory, applying predefined or custom rules uniformly.