Token导航 LogoToken导航TokenDH.com
研究检索external-servicegithub未标认证来源可访问许可证需确认审计通过

make-content-editable使内容可编辑

Agent Skill

用于辅助文档、README、Markdown、说明文和内容稿件的整理与改写。它适合让 Agent 提炼结构、补齐章节、统一术语、检查链接或把零散材料整理成可读文档。使用时应保留项目已有事实、命令和路径,不要把未确认的信息写成确定结论;涉及对外文案时,还需要控制语气,避免过度营销或夸大能力。

总安装

212

周安装

9

GitHub Stars

659

下载量

74
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:make-content-editable(使内容可编辑)
来源仓库:https://github.com/nuxt-content/nuxt-studio
仓库路径:skills/make-content-editable
安装命令:
npx skills add https://github.com/nuxt-content/nuxt-studio --skill make-content-editable
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/nuxt-content/nuxt-studio --skill make-content-editable

简介

用于辅助文档、Markdown 和内容稿件的整理与改写。

  • 适合提炼结构、统一术语或检查链接完整性。
  • 支持多种文本类型的内容优化。make-content-editable 属于研究检索类 Skill,可作为该场景下的辅助能力补充。
  • 通过 npx 命令从 GitHub 仓库安装。
  • 涉及对外文案时需避免过度营销表述。

SKILL.md

Make Content Editable

Convert hardcoded Vue components found in a markdown file into slot-based, Nuxt Studio-editable MDC components.

References

Consult these files as you work through each step:

FileWhen to consult
references/vue-slots.mdSlot naming conventions, props vs slots, mdc-unwrap, interactive components
references/mdc-syntax.mdColon depth, indentation, slot ordering, parse errors
references/nuxt-studio.mdWhy slots = editable regions, v-show rule
references/nuxt-components.mdNuxt component auto-discovery, props, default/named slots
references/nuxt-ui-components.mdUPageHero/UCard slot API, :ui overrides, text-center quirk
references/tailwind-purging.mdStatic lookup maps for color props

Goal

Produce a 1:1 visual match of every original rendered component, with all content moved into MDC slots and props so it is editable in Nuxt Studio's TipTap editor.


Step 0 — Select file and components

0a — Pick the file: Glob content/**/*.md (also .mdoc, .markdown). Present the list via AskUserQuestion (single-select).

0b — Pick the components: Read the chosen file. Extract every component reference (block ::name and inline :name), deduplicate, find and read each Vue file. Present the list via AskUserQuestion (multiSelect: true), showing for each: name + one-line summary of whether it has hardcoded content or is already slot/prop-driven.

0c — Confirm: Single-select confirmation before any conversion begins. If the user goes back, repeat 0b.

Process each confirmed component through Steps 1–5.


Step 1 — Read and analyse the component

Read the component file in full. If it uses Nuxt UI components, call mcp__nuxt-ui__get-component (sections: ["theme"]) and mcp__nuxt-ui__get-component-metadata to look up their slot API first.

Classify each element (see references/vue-slots.md — Slot Naming Conventions):

ElementBecomes
Hardcoded text (headings, labels, paragraphs)Named slot
Repeated items (cards, tabs)Child component with its own slots
Icon name, URL, booleanProp
Color/variant differing between siblingscolor prop + static lookup map
Interactive logic (tab switching, accordions)Hardcoded inside component — not a slot

Identify visual render order top-to-bottom — this is the required slot order in MDC.

Check if the project uses Nuxt UI and whether a layout component (UPageHero, UPageSection, UPageCard) already matches the visual pattern — prefer wrapping over reimplementing.


Step 2 — Design the component tree

Name components generically (reusable across pages, not tied to a specific page):

  • One parent section (HomeHero, LandingFeatures)
  • One collection wrapper for repeated items (FeatureList)
  • One item component per repeated element (FeatureCard)
  • One component per interactive sub-section (CodePlayground)

Align slot names with the naming table in references/vue-slots.md. If wrapping Nuxt UI, match its slot API 1:1 so slots can be forwarded without renaming.


Step 3 — Create the Vue components

Slots: <slot name="..." mdc-unwrap="p" /> for editable text. Add mdc-unwrap="p" for slots inside headings or <p> tags. See references/vue-slots.md.

Props: defineProps for icon names, URLs, booleans, colors. Never use props for content editors need to type.

Colors: When siblings differ visually, add a color prop with a static lookup map — never build Tailwind classes dynamically. See references/tailwind-purging.md.

Nuxt UI wrapping: Forward slots via <template #slotName><slot name="slotName" /></template>. Use v-if="$slots.slotName" for optional decorative slots. Override :ui instead of adding wrapper divs to reset styles. See references/nuxt-ui-components.md.

Interactive components: Keep state inside the component. Use v-show (not v-if) so all slot content stays mounted.

Script tag: Only add <script setup> when there are props, refs, or computed values.


Step 4 — Update the MDC in the markdown file

Replace each component usage. See references/mdc-syntax.md for colon depth, indentation, and parse error reference.

Key rules:

  • Slots appear in visual DOM order (top to bottom)
  • Plain-text slots (#headline, #title, #description) before slots containing nested components (#body, #footer)
  • Short config → inline props {key="value"}; multiple/complex → YAML frontmatter
  • #default works for simple single-slot components; use named slots when nested children share slot names (#title, #description) to avoid parse errors

Step 5 — Verify visual parity

Compare every element against the original:

  • Same section padding and container width
  • Same heading text, size, weight
  • Same description text and size
  • Same badge/headline label and icon
  • Same interactive controls with same labels and icons
  • Same code snippets verbatim
  • Same number of cards/items in same order
  • Same icon and color per card/item (check ALL siblings — colors often differ)
  • Content sections not text-centered if the original wasn't

Fix any discrepancy before moving to the next component.


Step 6 — Update memory

After all components are converted, save any new patterns or edge cases to the project memory file.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

37.77%
按下载量换算28

Claude

29.81%
按下载量换算22

Cursor

18.72%
按下载量换算14

Gemini CLI

9.29%
按下载量换算7

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

external-service

该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills