moai-foundation-cc

Author Claude Code Skills, sub-agents, plugins, slash commands, hooks, and settings.

Updated Jul 24, 2026
One-click install
npx skills add https://github.com/jjjh7401/AI-Lighting_Console --skill moai-foundation-cc-jjjh7401
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: moai-foundation-cc
Source: https://github.com/jjjh7401/AI-Lighting_Console/tree/main/.claude/skills/moai-foundation-cc
Command: npx skills add https://github.com/jjjh7401/AI-Lighting_Console --skill moai-foundation-cc-jjjh7401

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Creating Claude Code extensions requires knowing many scattered rules: SKILL.md frontmatter formats, sub-agent file conventions, plugin manifests, hook events, settings hierarchy, and sandboxing options. This Skill consolidates the official documentation and best practices into one authoring reference so extensions are built correctly the first time. ## Core Features & Use Cases - Extension Authoring Reference: Covers Skills (progressive disclosure, frontmatter rules), sub-agents (file format, nesting limits), plugins (plugin.json manifest), slash commands (parameters, $ARGUMENTS), hooks (PreToolUse, SessionStart), memory (CLAUDE.md), settings (6-level hierarchy), sandboxing, and headless mode. - Advanced Agent Patterns: Documents two-agent initializer/executor patterns, orchestrator-worker architectures, context engineering principles, and tool design best practices drawn from Anthropic engineering posts. - Quality Gates: Ships a 200+ point best-practices checklist plus rationalization, red-flag, and verification sections to catch common authoring mistakes like invalid YAML, missing hook scripts, or oversized CLAUDE.md files. - Use Case: When asked to create a new project Skill or configure a PreToolUse hook, load this Skill to get the exact frontmatter fields, directory layout, and validation steps. ## Quick Start Ask the AI to create a new Claude Code Skill or sub-agent for your project and it will apply the official formats and checklists from this kit.

Frequently Asked Questions about moai-foundation-cc

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

FAQPage Schema
How do I create a Claude Code Skill?▼

Create a SKILL.md file with YAML frontmatter containing a kebab-case name and a third-person description, then add a heading, Quick Start, and Details sections. Keep the body under 500 lines and use progressive disclosure with reference files for deeper content.

How do I create a sub-agent in Claude Code?▼

Write a markdown file in .claude/agents/ with frontmatter for name, description, a CSV tools list, and model, followed by the system prompt. The /agents wizard was removed in CC 2.1.198, so ask Claude to create it or edit the directory directly.

What is the difference between allowed-tools and disallowed-tools in a Skill?▼

allowed-tools pre-approves the listed tools so they run without a permission prompt during the invoking turn; it does not restrict the skill. disallowed-tools is the field that actually removes tools from use.

Can Claude Code sub-agents spawn other sub-agents?▼

Yes, nesting is allowed by default up to three layers below the main conversation, controlled by CLAUDE_CODE_MAX_SUBAGENT_SPAWN_DEPTH. To prevent a specific sub-agent from spawning, omit Agent from its tools list or add it to disallowedTools.

Why is my Claude Code hook not running?▼

Common causes are a hook registered in settings.json without a matching script file in .claude/hooks/, invalid JSON in settings.json, or hardcoded absolute paths instead of $CLAUDE_PROJECT_DIR. Always set an explicit timeout and validate the JSON after edits.

What are the limits of CLAUDE.md memory files?▼

CLAUDE.md has a 40,000 character limit, so large rule sets should move to .claude/rules/*.md files which load conditionally. Memory follows an enterprise-to-project-to-user hierarchy and supports @import syntax.