Token导航 LogoToken导航TokenDH.com
研究检索操作浏览器github未标认证来源可访问许可证需确认审计提醒

content-editing内容编辑

Agent Skill

用于辅助数据整理、表格处理、CSV/Excel 分析、指标计算和图表准备。它适合让 Agent 清洗字段、汇总数据、发现异常、生成统计口径或把分析结果转成可读说明。使用时需要确认数据来源、字段含义和时间范围,避免把样本数据当全量事实;涉及敏感数据、导出文件或批量写回时,应先确认权限和脱敏边界。

总安装

629

周安装

27

GitHub Stars

81

下载量

220
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/influxdata/docs-v2 --skill content-editing

简介

用于辅助数据整理、表格处理、CSV/Excel 分析、指标计算和图表准备。它适合让 Agent 清洗字段、汇总数据、发现异常、生成统计口径或把分析结果转成可读说明。

  • 适用于数据清洗、统计分析、可视化准备和业务报告生成等数据处理场景。
  • 使用时需要确认数据来源、字段含义和时间范围,避免把样本数据当全量事实;涉及敏感数据、导出文件或批量写回时,应先确认权限和脱敏边界。
  • 通过 npx skills add 命令从指定 GitHub 仓库安装,需结合项目现有数据结构和分析需求使用。
  • content-editing 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Content Editing Workflow

Purpose

This skill guides the complete workflow for creating and editing InfluxData documentation, from initial content creation through testing and validation. It integrates docs CLI tools, MCP server fact-checking, shared content management, and comprehensive testing.

Use this skill when:

  • Creating new documentation pages
  • Editing existing documentation
  • Working with shared content that affects multiple pages
  • Validating documentation accuracy and functionality

Quick Decision Tree

Need to decide when to use CLI vs direct editing?
└─ See docs-cli-workflow skill for decision guidance

Made content changes?
├─ To shared content? Touch sourcing files! (See Part 1: Shared Content)
├─ Run Vale linting (See Part 3: Vale Style Linting)
└─ Run tests (See Part 2: Testing)

Need to verify technical accuracy?
└─ Use documentation MCP server (See Part 4: Fact-Checking)

Need to write/debug Vale rules?
└─ See vale-rule-config skill (for CI/Quality Engineers)

Using docs create and docs edit

For detailed guidance on when and how to use the docs CLI tools, see the docs-cli-workflow skill, which covers:

  • When to suggest docs create vs direct file creation
  • When to suggest docs edit vs direct file editing
  • CLI command syntax and examples
  • How to present recommendations to users
  • Edge cases and user preference handling

Quick reference for this workflow:

# Create new documentation from draft
docs create <draft-path> --products <product-key>

# Edit existing documentation by URL or path
docs edit <url-or-path>

# List files without opening editor (agent-friendly)
docs edit <url-or-path> --list

# Add placeholder syntax to code blocks
docs placeholders <file.md>

# Important: Both commands are non-blocking by default
# - Launch editor in background
# - Return immediately (agent-friendly)
# - Use --wait flag for blocking behavior

Part 1: Shared Content Management

What is Shared Content?

Content that appears in multiple products uses Hugo's content adapter pattern:

content/
├── shared/
│   └── influxdb3/
│       └── admin/
│           └── databases.md          # Actual content here
├── influxdb3/
│   ├── core/
│   │   └── admin/
│   │       └── databases.md         # Frontmatter only, has source:
│   └── enterprise/
│       └── admin/
│           └── databases.md         # Frontmatter only, has source:

Frontmatter file example:

---
title: Database Management
source: /content/shared/influxdb3/admin/databases.md
---

CRITICAL: Touching Sourcing Files

When you edit a shared content file, Hugo does NOT automatically rebuild pages that reference it.

You MUST touch the frontmatter files to trigger a rebuild:

# Manual approach
touch content/influxdb3/core/admin/databases.md
touch content/influxdb3/enterprise/admin/databases.md

Automatic (Recommended)

Use docs edit - it handles this automatically:

# This command will:
# 1. Find the shared source file
# 2. Find ALL frontmatter files that reference it
# 3. Open all files for editing
# 4. You edit the shared file
# 5. Hugo sees changes to frontmatter files and rebuilds

docs edit /influxdb3/core/admin/databases/

Programmatic Detection

If you need to handle this in code:

// Check if a file is a sourcing file (frontmatter only)
import { readFileSync } from 'fs';
import matter from 'gray-matter';

function isSharedContent(filePath) {
  const content = readFileSync(filePath, 'utf8');
  const { data, content: body } = matter(content);

  // If has source: frontmatter and minimal/no body content
  return data.source && body.trim().length < 50;
}

function getSharedSource(filePath) {
  const content = readFileSync(filePath, 'utf8');
  const { data } = matter(content);
  return data.source; // e.g., "/content/shared/influxdb3/admin/databases.md"
}

Why This Matters

Failure to touch sourcing files means:

  • Hugo won't rebuild the pages
  • Your changes won't appear in test/preview
  • Tests will fail because content hasn't changed
  • Published site won't reflect your edits

Check for Path Differences and Add alt_links

When creating or editing shared content, check if the URL paths differ between products. If they do, add alt_links frontmatter to each product file to cross-reference the equivalent pages.

See DOCS-FRONTMATTER.md for syntax and examples.

Check product resource terms are cross-referenced

Product resource terms often appear inside code-placeholder-key shortcode text and bullet item text. Example product resource terms:

  • "database token"
  • "database name"

Part 2: Testing Workflow

After making content changes, run tests to validate:

1. Hugo Build Test (Required)

# Verify Hugo can build the site
yarn hugo --quiet

# Look for errors like:
# - Template errors
# - Missing partials
# - Invalid frontmatter
# - Broken shortcodes

2. Link Validation (Recommended)

# Test all links in the documentation
yarn test:links

# This checks:
# - Internal links (relative paths)
# - Cross-references
# - Anchor links

3. Code Block Testing (For Pages with Examples)

# Test all code examples in documentation
yarn test:codeblocks:all

# Tests code blocks marked with:
# - testable: true
# - Validates syntax
# - Can execute examples (for supported languages)

4. E2E Testing (For Specific Pages)

Use the cypress-e2e-testing skill for comprehensive page testing:

# Test specific content file
node cypress/support/run-e2e-specs.js content/influxdb3/core/admin/databases/_index.md

# Test API reference pages (requires yarn build:api-docs first)
node cypress/support/run-e2e-specs.js \
  --spec "cypress/e2e/content/api-reference.cy.js" \
  content/influxdb3/core/api/_index.md

Important prerequisites:

  • API tests: Run yarn build:api-docs first
  • Markdown validation: Run yarn hugo --quiet && yarn build:md first

See cypress-e2e-testing skill for detailed test workflow.

5. Style Linting (Pre-commit)

Vale style linting runs automatically via pre-commit hooks, but you can run it manually:

# Lint specific files
.ci/vale/vale.sh --config=.vale.ini content/influxdb3/core/path/to/file.md

# Lint with minimum alert level
.ci/vale/vale.sh --config=.vale.ini --minAlertLevel=warning content/path/

# Sync Vale packages (after .vale.ini changes)
.ci/vale/vale.sh sync

Common issues:

  • admin flagged → Use "administrator" in prose, or it's in a code context
  • Duration literals (30d) → These are valid InfluxDB syntax
  • Technical terms flagged → Add to .ci/vale/styles/InfluxDataDocs/Terms/ignore.txt

See vale-linting skill for comprehensive Vale workflow.

6. Visual Preview (Optional)

# Start Hugo development server
yarn hugo server

# Visit http://localhost:1313
# Preview your changes in browser

Part 3: Vale Style Linting

Vale checks documentation for style guide violations, spelling errors, and branding consistency.

For writing Vale rules and understanding regex patterns, see the vale-rule-config skill.

Running Vale

# Basic linting (all markdown files)
.ci/vale/vale.sh content/**/*.md

# Lint specific product
.ci/vale/vale.sh content/influxdb3/core/**/*.md

# With specific config and alert level
.ci/vale/vale.sh \
  --config=content/influxdb/cloud-dedicated/.vale.ini \
  --minAlertLevel=error \
  content/influxdb/cloud-dedicated/write-data/**/*.md

Understanding Vale Alerts

Vale reports three alert levels:

  • Error (red): Critical issues - branding violations, broken style rules, rejected terms
  • Warning (yellow): Style guide recommendations - should be fixed
  • Suggestion (blue): Optional improvements - consider fixing

Fixing Common Vale Issues

Spelling/vocabulary errors:

# If Vale flags a legitimate term, add it to vocabulary
echo "YourTerm" >> .ci/vale/styles/config/vocabularies/InfluxDataDocs/accept.txt

Style violations: Vale will suggest the correct form. For example:

content/file.md:25:1: Use 'InfluxDB 3' instead of 'InfluxDB v3'

Simply make the suggested change.

False positives: If Vale incorrectly flags something:

  1. Check if it's a new technical term that should be in vocabulary
  2. See if the rule needs refinement (consult vale-rule-config skill)
  3. Add inline comments to disable specific rules if necessary:
<!-- vale InfluxDataDocs.TechnicalTerms = NO -->
This paragraph contains technical terms that Vale might flag.
<!-- vale InfluxDataDocs.TechnicalTerms = YES -->

When to Run Vale

  • Before committing: Pre-commit hooks run Vale automatically
  • After content changes: Run manually to catch issues early
  • In CI/CD: Automated on pull requests

Part 4: Fact-Checking with the Documentation MCP Server

The InfluxDB documentation MCP server lets you search InfluxDB documentation (the rendered content managed in this repository) and related InfluxData references (source code READMEs, community forums, and some third-party tool documentation) directly from your AI assistant.

When to Use the Documentation MCP Server

The primary source of content in the Documentation MCP Server is the fully rendered public HTML from this repository. Use the Documentation MCP Server when the information here is inconclusive, when you need to deepen your understanding of InfluxData products and integrations, or when identifying content gaps in the documentation.

Use for:

  • Verifying technical accuracy of claims
  • Checking current API syntax
  • Confirming feature availability across products
  • Understanding complex product behavior
  • Finding related documentation and code examples
  • Identifying and analyzing content gaps in the documentation

Don't use for:

  • Basic style/grammar checks (use Vale)
  • Link validation (use yarn test:links)
  • Testing code examples (use yarn test:codeblocks)

Setup

The documentation MCP server is hosted at https://influxdb-docs.mcp.kapa.ai—no local installation required.

Already configured in .mcp.json. Two server entries are available:

  • influxdb-docs (API key) — Set INFLUXDATA_DOCS_KAPA_API_KEY env var. 60 req/min.
  • influxdb-docs-oauth (OAuth) — No setup. Authenticates via Google or GitHub on first use. 40 req/hr, 200 req/day.

Available Tool

The MCP server exposes a semantic search tool:

search_influxdb_knowledge_sources

What it does:

  • Searches all InfluxDB documentation for a given query
  • Returns relevant chunks in descending order of relevance
  • Each chunk includes source_url and Markdown content

Example queries:

  • "How do I create a database in InfluxDB 3 Core?"
  • "What's the difference between InfluxDB 3 Core and Enterprise clustering?"
  • "Show me InfluxQL SELECT syntax for filtering by time range"

Example Workflow: Fact-Checking During Editing

## Scenario: Editing database management documentation

1. Draft claims: "InfluxDB 3 supports up to 10,000 databases per instance"

2. Ask your AI assistant to verify using the MCP server:
   "What are the database limits in InfluxDB 3 Core and Enterprise?"

3. MCP response returns documentation chunks with actual limits

4. Update draft with accurate information

5. Cite the source_url in documentation if needed

Best Practices

DO:

  • Ask specific, focused questions
  • Verify claims about features, limits, syntax
  • Cross-check answers with source URLs provided
  • Use for understanding complex interactions

DON'T:

  • Rely solely on MCP without reviewing source docs
  • Use for subjective style decisions
  • Expect real-time product behavior (it searches documentation, not live systems)
  • Use as a replacement for testing (always test code examples)

Part 5: Complete Example Workflows

Example 1: Creating New Multi-Product Documentation

# Step 1: Create content from draft
docs create database-tutorial.md --products influxdb3-core,influxdb3-enterprise

# CLI scaffolds files:
# - content/shared/influxdb3/guides/database-tutorial.md
# - content/influxdb3/core/guides/database-tutorial.md (frontmatter)
# - content/influxdb3/enterprise/guides/database-tutorial.md (frontmatter)

# Step 2: Verify technical accuracy
# Ask your AI assistant (with MCP configured) to verify claims:
# "Verify database creation syntax for InfluxDB 3"

# Step 3: Test Hugo build
yarn hugo --quiet

# Step 4: Run E2E tests
node cypress/support/run-e2e-specs.js \
  content/influxdb3/core/guides/database-tutorial.md

# Step 5: Validate links
yarn test:links

# Step 6: Test code examples (if tutorial has code blocks)
yarn test:codeblocks:all

Example 2: Editing Shared Content

# Step 1: Find and edit the content
docs edit https://docs.influxdata.com/influxdb3/core/reference/sql/

# CLI automatically:
# - Finds content/shared/influxdb3/reference/sql/_index.md
# - Finds ALL frontmatter files referencing it:
#   * content/influxdb3/core/reference/sql/_index.md
#   * content/influxdb3/enterprise/reference/sql/_index.md
#   * content/influxdb3/cloud-dedicated/reference/sql/_index.md
# - Opens all files (sourcing files will be touched when saved)

# Step 2: Make edits to the shared source file

# Step 3: Fact-check changes with MCP
# Ask your AI assistant: "Verify SQL WHERE clause syntax in InfluxDB 3"

# Step 4: Test the build
yarn hugo --quiet

# Step 5: Test affected pages
node cypress/support/run-e2e-specs.js \
  content/influxdb3/core/reference/sql/_index.md \
  content/influxdb3/enterprise/reference/sql/_index.md

# Step 6: Validate links in SQL reference
yarn test:links

Example 3: Quick Fix Without CLI

# Step 1: Fix typo directly (you know the file)
# Edit content/influxdb3/core/get-started/_index.md

# Step 2: Test Hugo build
yarn hugo --quiet

# Step 3: Quick visual check
yarn hugo server
# Visit http://localhost:1313/influxdb3/core/get-started/

# Done! (No need for comprehensive testing on typo fixes)

Part 6: Troubleshooting

Hugo Build Fails

# Check for detailed errors
yarn hugo

# Common issues:
# - Invalid frontmatter YAML
# - Missing closing shortcode tags
# - Broken partial references
# - Invalid template syntax

Tests Fail After Editing Shared Content

Problem: Edited shared file, but test shows old content

Solution: Touch the sourcing files manually

# Find pages that reference the shared file
grep -r "source: /content/shared/path/to/file.md" content/

# Touch each one
touch content/influxdb3/core/path/to/file.md
touch content/influxdb3/enterprise/path/to/file.md

# Or use docs edit (it does this automatically)

MCP Server Not Responding

Troubleshooting steps:

  • API key auth (influxdb-docs): Verify INFLUXDATA_DOCS_KAPA_API_KEY is set. Rate limit: 60 req/min.
  • OAuth auth (influxdb-docs-oauth): Sign in with Google or GitHub on first use. Rate limits: 40 req/hr, 200 req/day.
  • Verify your network allows connections to *.kapa.ai
  • Check if you've exceeded rate limits (wait and retry)

Cypress Tests Fail

See cypress-e2e-testing skill for comprehensive debugging:

# Check Hugo server logs
cat /tmp/hugo_server.log | tail -50

# Run tests interactively
yarn cypress open

# Check if API content was generated (for API tests)
ls content/influxdb3/core/api/
# If empty: yarn build:api-docs

Part 7: Quick Reference

TaskCommand
Create new contentdocs create draft.md --products <key-or-path>
Edit by URLdocs edit https://docs.influxdata.com/...
List files without editingdocs edit <url> --list
Add placeholders to codedocs placeholders file.md or docs placeholders file.md --dry
Audit documentationdocs audit --products influxdb3_core or docs audit --products /influxdb3/core
Generate release notesdocs release-notes v3.1.0 v3.2.0 --products influxdb3_core
Build Hugo siteyarn hugo --quiet
Run Vale linting.ci/vale/vale.sh --config=.vale.ini content/path/
Test linksyarn test:links
Test code blocksyarn test:codeblocks:all
Test specific pageyarn test:e2e content/path/file.md
Fact-check with MCPAsk AI assistant with search_influxdb_knowledge_sources tool configured
Preview locallyyarn hugo server (visit localhost:1313)
Generate API docsyarn build:api-docs (before API reference tests)

Note: --products accepts both product keys (influxdb3_core) and content paths (/influxdb3/core).

Related Skills

  • docs-cli-workflow - When to use CLI vs direct editing (decision guidance)
  • vale-rule-config - Writing Vale rules and understanding regex patterns (for CI/Quality Engineers)
  • cypress-e2e-testing - Detailed Cypress test execution and debugging
  • hugo-template-dev - Hugo template syntax and development
  • vale-linting - Vale style linting configuration and debugging

Checklist: Before Claiming Content is Complete

  • Content created/edited using appropriate method (CLI or direct)
  • If shared content: Sourcing files touched (or used docs edit)
  • If shared content: Check for path differences and add alt_links if paths vary
  • Technical accuracy verified (MCP fact-check if needed)
  • Hugo builds without errors (yarn hugo --quiet)
  • Vale style linting passes (.ci/vale/vale.sh --config=.vale.ini content/path/)
  • Links validated (yarn test:links)
  • Code examples tested (if applicable)
  • E2E tests pass for affected pages
  • Visual preview confirms changes look correct
  • Related documentation updated (if needed)

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

38.11%
按下载量换算84

Claude

28.66%
按下载量换算63

Cursor

18%
按下载量换算40

Gemini CLI

8.58%
按下载量换算19

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

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

来源信息

继续浏览同类 Skills