project-code-standards

Enforces project code conventions for Vue/Nuxt, TypeScript, styling (UnoCSS/SCSS), icons, composables, and commits. Use when writing or reviewing code in this repo, adding components, hooks, or styles, or when asked about project coding standards.

710 stars

Best use case

project-code-standards is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

Enforces project code conventions for Vue/Nuxt, TypeScript, styling (UnoCSS/SCSS), icons, composables, and commits. Use when writing or reviewing code in this repo, adding components, hooks, or styles, or when asked about project coding standards.

Teams using project-code-standards should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/project-code-standards/SKILL.md --create-dirs "https://raw.githubusercontent.com/KiWi233333/JiwuChat/main/.cursor/skills/project-code-standards/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/project-code-standards/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How project-code-standards Compares

Feature / Agentproject-code-standardsStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Enforces project code conventions for Vue/Nuxt, TypeScript, styling (UnoCSS/SCSS), icons, composables, and commits. Use when writing or reviewing code in this repo, adding components, hooks, or styles, or when asked about project coding standards.

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

Related Guides

SKILL.md Source

# 项目代码规范

本 Skill 约定本仓库的编码方式、Vue 组件、样式、图标、Composables 与类型、Commit 等规范。Agent 在编写或审查本仓库代码时应遵循并引用对应子文档。

## 规范文档索引

| 大类               | 文件                                         | 内容摘要                                                      |
| ------------------ | -------------------------------------------- | ------------------------------------------------------------- |
| 编码与命名         | [coding-style.md](coding-style.md)           | 缩进/引号/分号、ESLint、文件与函数命名、Commit 规范、Git 规则 |
| Vue 组件           | [vue-components.md](vue-components.md)       | Nuxt 路径即组件名、Props/Emits、类型分离、el-tooltip 坑点     |
| 样式               | [styling.md](styling.md)                     | rem、UnoCSS shortcuts、布局、动态类名、视觉与主题             |
| SCSS               | [scss.md](scss.md)                           | --at-apply、语义类名、避免 BEM、深色模式                      |
| 图标               | [icons.md](icons.md)                         | class 格式 `i-{collection}:{icon-name}`、常用集合与示例       |
| Composables 与类型 | [composables-types.md](composables-types.md) | api/hooks/store/utils 分工、Result<T>、types/ 目录      |
| 路由与页面         | [routing-pages.md](routing-pages.md)         | 文件路由、definePageMeta、layout、目录约定                    |
| 测试与工具         | [testing-tooling.md](testing-tooling.md)     | 当前测试策略、常用命令、Tauri/依赖/OAuth 常见问题             |
| 架构速查           | [architecture.md](architecture.md)           | app 目录、WebSocket/TipTap/Tauri 关键路径、配置与环境         |

## 快速检查清单

- **编码**:2 空格、双引号、分号;Vue 用 `PascalCase.vue`,composables 用 `useXxx.ts`;提交前 `pnpm run lint:fix`。
- **组件**:模板中组件名按 Nuxt 路径(如 `CommonIconTip`);Props 解构+默认值,类型放单独 `<script lang="ts">`;el-tooltip 不同时用 `:content` 与 `#content`。
- **样式**:尺寸用 rem;优先 `uno.config.ts` shortcuts;scoped SCSS 里用 `--at-apply`,不用裸 `@apply`。
- **图标**:统一 `i-{collection}:{icon-name}`(如 `i-solar:settings-linear`、`i-ri:user-line`)。
- **Composables/类型**:API 返回 `Result<T>`,通用类型放 `app/types/`。
- **Commit**:Conventional Commits;**禁止**在未获用户明确要求时执行 `git commit`。

## 何时查阅子文档

- 新增或修改 **Vue 组件** → vue-components.md
- 写 **样式/SCSS** 或改 UnoCSS → styling.md、scss.md
- 使用或新增 **图标** → icons.md
- 新增 **composable、API、类型** → composables-types.md
- **提交信息** 或 **Git 行为** → coding-style.md
- 新增 **页面/路由** 或设 layout → routing-pages.md
- **测试、构建、Tauri/依赖问题** → testing-tooling.md
- 查 **目录结构或关键文件路径** → architecture.md

Related Skills

jiwuchat-quickstart

710
from KiWi233333/JiwuChat

JiwuChat 项目快速入门知识库 - 基于 Tauri 2.9+ 和 Nuxt.js 4.0 的跨平台聊天应用

java-coding-standards

144923
from affaan-m/everything-claude-code

Spring Bootサービス向けのJavaコーディング標準:命名、不変性、Optional使用、ストリーム、例外、ジェネリクス、プロジェクトレイアウト。

analyze-project

31392
from sickn33/antigravity-awesome-skills

Forensic root cause analyzer for Antigravity sessions. Classifies scope deltas, rework patterns, root causes, hotspots, and auto-improves prompts/health.

project-skill-audit

31392
from sickn33/antigravity-awesome-skills

Audit a project and recommend the highest-value skills to add or update.

systems-programming-rust-project

31392
from sickn33/antigravity-awesome-skills

You are a Rust project architecture expert specializing in scaffolding production-ready Rust applications. Generate complete project structures with cargo tooling, proper module organization, testing

startup-business-analyst-financial-projections

31392
from sickn33/antigravity-awesome-skills

Create detailed 3-5 year financial model with revenue, costs, cash flow, and scenarios

sred-project-organizer

31392
from sickn33/antigravity-awesome-skills

Take a list of projects and their related documentation, and organize them into the SRED format for submission.

projection-patterns

31392
from sickn33/antigravity-awesome-skills

Build read models and projections from event streams. Use when implementing CQRS read sides, building materialized views, or optimizing query performance in event-sourced systems.

project-development

31392
from sickn33/antigravity-awesome-skills

This skill covers the principles for identifying tasks suited to LLM processing, designing effective project architectures, and iterating rapidly using agent-assisted development.

odoo-project-timesheet

31392
from sickn33/antigravity-awesome-skills

Expert guide for Odoo Project and Timesheets: task stages, billable time tracking, timesheet approval, budget alerts, and invoicing from timesheets.

azure-ai-projects-ts

31392
from sickn33/antigravity-awesome-skills

High-level SDK for Azure AI Foundry projects with agents, connections, deployments, and evaluations.

azure-ai-projects-py

31392
from sickn33/antigravity-awesome-skills

Build AI applications on Microsoft Foundry using the azure-ai-projects SDK.