Nuxt Chinese Comments logo

Nuxt Chinese Comments

Community
ycc77cn
nuxt-chinese-comments

确保所有 Nuxt 代码使用中文注释,并在每个函数上方添加中文说明。当需要创建或修改 Nuxt 代码时调用此技能。

Overview

Publisherycc77cn
Repositoryskills
Skill namenuxt-chinese-comments
Stars
55
Forks
20
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by ycc77cn on GitHub. Read the source before you install it.

Installation

Install the Nuxt Chinese Comments AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/ycc77cn/skills/tree/main/软件开发/Nuxt中文注释-函数级
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.

Use it in TypingMind

Enable Nuxt Chinese Comments in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Nuxt Chinese Comments on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Nuxt Chinese Comments is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Nuxt 中文注释规范

技能目标

确保所有 Nuxt 项目中的代码:

  • 使用中文注释
  • 在每个函数上方添加中文说明
  • 保持代码可读性和可维护性

应用场景

当以下情况时,应调用此技能:

  • 创建新的 Nuxt 组件、页面或工具函数
  • 修改现有 Nuxt 代码
  • 重构 Nuxt 项目代码
  • 为 Nuxt 项目添加新功能

注释规范

1. 文件头部注释

在每个文件顶部添加文件说明:

vue
<!--
文件名称:组件/页面名称
文件描述:详细描述文件的功能和用途
创建时间:YYYY-MM-DD
-->
<template>
  <!-- 模板内容 -->
</template>

2. 函数注释

在每个函数上方添加详细的中文说明:

javascript
/**
 * 函数名称:函数的具体名称
 * 功能描述:详细描述函数的功能
 * 参数:
 *   param1: 参数1的类型和说明
 *   param2: 参数2的类型和说明
 * 返回值:返回值的类型和说明
 * 示例:
 *   // 使用示例
 */
function exampleFunction(param1, param2) {
  // 函数实现
}

3. 代码块注释

对于复杂的代码块,添加中文注释说明:

javascript
// 处理用户登录逻辑
if (userLoggedIn) {
  // 验证用户权限
  if (hasPermission) {
    // 执行授权操作
  }
}

4. 组件注释

在 Vue 组件中添加适当的注释:

vue
<!-- 导航栏组件 -->
<nav class="nav">
  <!-- 左侧 Logo -->
  <div class="logo">...</div>
  <!-- 右侧导航链接 -->
  <div class="nav-links">...</div>
</nav>

示例

完整的 Nuxt 页面示例

vue
<!--
文件名称:首页
文件描述:网站首页,包含导航栏、核心功能展示和页脚
创建时间:2024-01-29
-->
<template>
  <div class="page-container">
    <!-- 头部导航栏 -->
    <header class="header">
      <nav class="nav">
        <a href="#" class="nav-link active">首页</a>
        <a href="#" class="nav-link">服务</a>
        <a href="#" class="nav-link">案例</a>
        <a href="#" class="nav-link">联系</a>
      </nav>
    </header>

    <!-- 主内容区 -->
    <main class="main">
      <section class="hero">
        <h1 class="hero-title">核心功能</h1>
      </section>
    </main>
  </div>
</template>

<script setup>
/**
 * 响应式导航链接点击事件
 * @param {string} link - 链接地址
 * @returns {void}
 */
const handleNavClick = (link) => {
  // 处理导航链接点击
  console.log('点击导航链接:', link)
}
</script>

<style scoped>
/* 页面容器样式 */
.page-container {
  min-height: 100vh;
  background: #ffffff;
}

/* 头部导航样式 */
.header {
  background: #ffffff;
  border-bottom: 1px solid #f5f5f5;
}
</style>

检查清单

使用此技能时,请确保:

  • 所有文件都有中文头部注释
  • 所有函数都有中文函数说明
  • 复杂代码块有中文注释
  • 注释内容清晰、准确
  • 注释与代码同步更新

最佳实践

  • 注释应该解释 "为什么" 而不是 "是什么"
  • 保持注释简洁明了,避免冗余
  • 定期更新注释,确保与代码保持一致
  • 使用中文标点符号,保持语言一致性

Frequently asked questions

What does the Nuxt Chinese Comments AI skill do?

确保所有 Nuxt 代码使用中文注释,并在每个函数上方添加中文说明。当需要创建或修改 Nuxt 代码时调用此技能。

Why use Nuxt Chinese Comments on TypingMind?

Because you install it once and use it with any model. Nuxt Chinese Comments is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Nuxt Chinese Comments in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/ycc77cn/skills/tree/main/软件开发/Nuxt中文注释-函数级. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Nuxt Chinese Comments?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Nuxt Chinese Comments?

As many as you like. As long as a model supports skills, you can use Nuxt Chinese Comments with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Nuxt Chinese Comments AI skill free?

Yes. It is published on GitHub by ycc77cn under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇