跳到正文
cccskills
免费在 GitHub 公开

mk:project-organization

Use when creating files and need the correct path, organizing project layout, or enforcing naming conventions. Two modes: advisory (return path) and organize (restructure).

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(2)

  • SKILL.md5.4 KB
  • references/directory-rules.md2.5 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Project Organization

Standardize file locations, naming conventions, and directory structure for projects.

When to Use

  • Creating a file and need the correct path
  • Organizing existing files after a messy session
  • Enforcing naming conventions across the project
  • Other skills need to know where to save output (advisory mode)

Explicit: /mk:project-organization [targets]

Workflow Integration

Operates in Phase 6 (Reflect) or advisory mode (called by any skill). Output supports the documenter agent.

Modes

ModeTriggerBehavior
AdvisoryOther skills reference this skillReturn correct path + naming for file type
OrganizeUser invokes directlyScan → propose → confirm → execute

Process (Organize Mode)

  1. Scan + categorize — list all files, assign each to directory category per references/directory-rules.md, check naming conventions
  2. Propose — present changes as from → to table, ask user approval
  3. Execute + report — move/rename files, create missing directories, list final structure

Process (Advisory Mode)

  1. Determine file type from context (source? doc? plan? test? asset?)
  2. Look up correct path from directory categories
  3. Apply naming rules (timestamped / evergreen / variant)
  4. Return: {path}/{name}.{ext}

Output Format

## Project Organization: {scope}

**Mode:** {advisory | organize}
**Files scanned:** {N}
**Issues found:** {N}

### Changes
| From | To | Reason |
|------|------|--------|
| {old path} | {new path} | {rule violated} |

### Final Structure
{tree view of organized directories}

References

ReferenceWhen to loadContent
directory-rules.mdSteps 2-4 — categorizing + namingDirectory categories, naming patterns, nesting logic

Failure Handling

FailureRecovery
File conflict (target exists)Ask user: overwrite, rename, or skip
Protected path (.git, .env, node_modules)Skip silently — never touch
No files found in targetReport "No files found in {path}"

Constraints

  • Never overwrite existing files without confirmation
  • Never touch .git/, node_modules/, .env files
  • Respect .gitignore patterns
  • Use mk: prefix conventions for .claude/skills/ directories

Gotchas

  • Monorepo package name in package.json and the directory name can diverge silently — a workspace package at packages/auth-service/ with "name": "@company/auth" is referenced by consumers as @company/auth, but path aliases, Docker build contexts, and some bundlers resolve by directory name; mismatch causes "cannot find module" errors that only appear after a fresh install in CI.
  • tsconfig.json path aliases are NOT honored by test runners without separate config — paths: { "@/*": ["src/*"] } in tsconfig.json resolves in tsc and Vite but Vitest and Jest use their own module resolvers; tests using @/ aliases silently fall through to node_modules lookup and fail with "Cannot find module '@/utils'" unless moduleNameMapper (Jest) or alias (Vitest) is configured separately.
  • Circular path aliases break tree-shaking and cause undefined at runtime — src/utils/index.ts re-exporting from src/components/ which imports from src/utils/ creates a circular dependency that bundlers resolve non-deterministically; the symptom is a component that is undefined when imported via the alias but defined when imported by relative path.
  • Absolute imports (src/) vs relative imports (../../) inconsistency prevents reliable refactoring — mixing both styles means automated refactoring tools (VS Code "move file", ts-morph) update only the form they recognize; half the import sites break silently on any file move; enforce one style via ESLint import/no-relative-parent-imports or import/no-absolute-path.
  • .gitignore patterns not applying to already-tracked files causes dist/ to appear in PRs — if dist/ was committed before being added to .gitignore, git continues tracking it; git rm -r --cached dist/ is required to untrack it, and omitting this step means every build output change appears as a diff in PRs.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Use this skill to generate well-branded interfaces and assets for MeowKit (AI Agent Toolkit for Claude Code), either for production or throwaway prototypes/mocks/etc. Contains essential design guidelines, colors, type, fonts, assets, and UI kit components for prototyping.

中文简介正在准备中。当前显示原文说明。

ngocsangyem/MeowKit152026年7月28日 更新

mk-advise

免费

Turn a raw idea into ONE honest recommendation: interview one question at a time until confirmed, then give a verdict with trade-offs and a checklist. Not for options or debate.

中文简介正在准备中。当前显示原文说明。

ngocsangyem/MeowKit152026年7月28日 更新

Browser automation CLI for agents: navigate, click/fill, screenshot, extract data, test apps, Electron/Slack, cloud browsers. NOT for the user's real Chrome profile/cookies (mk:chrome-profile).

中文简介正在准备中。当前显示原文说明。

ngocsangyem/MeowKit152026年7月28日 更新

Detects the right agent and complexity tier at Phase 0 orient; runs first in every workflow. NOT for runtime agent routing inside a single skill.

中文简介正在准备中。当前显示原文说明。

ngocsangyem/MeowKit152026年7月28日 更新

Angular v20+ patterns: components, signals, services, forms, routing, HTTP, testing, SSR. Auto-activates on .ts files in Angular projects (angular.json detected).

中文简介正在准备中。当前显示原文说明。

ngocsangyem/MeowKit152026年7月28日 更新

Design and review durable REST, GraphQL, RPC, or event API contracts: shape, compatibility, pagination, error semantics. Discovers existing consumers first. Not implementation, schema, or release.

中文简介正在准备中。当前显示原文说明。

ngocsangyem/MeowKit152026年7月28日 更新

查看 ngocsangyem 的全部技能

报告此技能的问题