cangjie-annotation

Community

Master Cangjie's built-in annotations.

AuthorSunriseSummer
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill helps developers understand and effectively use Cangjie SDK's built-in annotations for source code location, conditional compilation, performance optimization, ABI stability, metadata tagging, and deprecation management.

Core Features & Use Cases

  • Source Location: Get package, file, and line number information.
  • Conditional Compilation: Use @When to compile code based on OS, architecture, or build mode.
  • Performance: Optimize foreign function calls with @FastNative.
  • ABI Stability: Ensure backward compatibility with @Frozen.
  • Metadata: Add runtime-readable attributes with @Attribute.
  • Deprecation: Mark APIs for removal with @Deprecated.
  • Use Case: When writing platform-specific code in Cangjie, use @When to ensure the correct implementation is compiled for each target operating system.

Quick Start

Explain the usage of the @sourceLine() annotation in Cangjie.

Dependency Matrix

Required Modules

None required

Components

references

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: cangjie-annotation
Download link: https://github.com/SunriseSummer/CangjieDocValidator/archive/main.zip#cangjie-annotation

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.