cangjie-package

Validate Cangjie package declarations and import rules against src/ paths.

4|1|Updated Mar 29, 2026
One-click install
npx skills add https://github.com/JunjieChen0/NJUST --skill cangjie-package-junjiechen0
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cangjie-package
Source: https://github.com/JunjieChen0/NJUST/tree/main/.njust-ai/skills/cangjie-package
Command: npx skills add https://github.com/JunjieChen0/NJUST --skill cangjie-package-junjiechen0

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Organize and validate Cangjie language packages to ensure correct module packaging, package declarations, and import/export semantics across a codebase.

Core Features & Use Cases

  • Package declaration validation: ensures package statements match relative paths under src/.
  • Module and main entry organization: enforces a root/main entry per module and consistent directory structure.
  • Import/export rules: validates import syntax and public/internal visibility behaviors.
  • Use Case: When managing a large Cangjie project, use this Skill to verify packaging conventions and generate consistent module structures.

Quick Start

Define a new Cangjie package structure that matches the src/ directory and declares correct package statements.

Frequently Asked Questions about cangjie-package

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

FAQPage Schema
How do I validate Cangjie package declarations to match the src/ directory structure?

Cangjie package validation works by ensuring package statements match relative paths under the src/ directory. This enforces consistent directory structure and verifies that module and subpackage relationships align with the declared package paths.

What are the import and export rules for top-level visibility modifiers in Cangjie?

Cangjie import and export rules validate import syntax alongside public and internal visibility behaviors. This ensures top-level visibility modifiers are correctly applied to control module access across the codebase.

How do I organize a main entry point for a Cangjie module?

Cangjie module organization enforces a root or main entry point per module within a consistent directory structure. This maintains correct module packaging and ensures proper code organization across the project.

Does Cangjie package management support large projects with multiple subpackages?

Cangjie package management supports large projects by verifying packaging conventions and generating consistent module structures. It validates module and subpackage relationships across the entire codebase to maintain organization at scale.

Why are my Cangjie package imports failing despite correct file paths?

Cangjie package imports can fail if package declarations do not match relative paths under src/ or if import syntax violates validation rules. The packaging validation checks module structure and visibility modifiers to resolve these errors.