본문으로 건너뛰기
cccskills
무료GitHub에 공개

new-doc

Scaffold a new documentation page with correct frontmatter, terminology, and sidebar registration. Triggers on "new doc", "create page", "add doc", "scaffold doc".

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

OffchainLabs/arbitrum-docs스타 252(GitHub 252 + cccskills 0)

실행 점수 미검증

설치 방법 보기

포함된 파일(1)

  • SKILL.md6.2 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

New Doc

Scaffold a new MDX documentation page following all project conventions.

Required input from user

Only title and description are required by the frontmatter schema (arbitrumPageSchema in lib/page-schema.ts); everything else below is optional and the page is valid without it. Still ask for a Section up front, since it decides the file's path (it is not a frontmatter field).

FieldExampleNotes
Title"Bridge tokens to Arbitrum"Sentence case, appears as H1. Required.
Descriptionone-sentence summaryRequired.
Sectionbuild-decentralized-appsMust match an existing content/docs/ subdirectory. Not a frontmatter field.

Optional (omit the key entirely if not provided, rather than leaving it blank):

  • sidebar_label: the page's name in the sidebar; defaults to title if omitted
  • content_type: one of how-to, concept, quickstart, tutorial, reference, troubleshooting, faq; an editorial label, nothing renders it
  • author: GitHub username
  • sme: subject matter expert GitHub username (can be same as author)
  • target_audience: intended readers and their assumed knowledge
  • user_story: the reader's goal, for example "As a chain operator, I want to rotate node keys so I can keep my chain secure"

Preserve existing target_audience and user_story values when editing a page. Neither renders on the site. There is no draft field in this schema; never add it when scaffolding a page.

File creation

1. Determine file path

content/docs/{section}/{slug}.mdx

Slug: lowercase title, spaces to hyphens, no special chars. File names carry no ordering — the sidebar order comes from meta.json in the same directory (step 4).

2. Write frontmatter + skeleton

---
title: '{title}'
description: '{description}'
sidebar_label: '{sidebar_label}'
content_type: '{content_type}'
author: '{author}'
sme: '{sme}'
---

{skeleton based on content_type}

Drop any of sidebar_label, content_type, author, sme the user did not give you rather than writing an empty string: they are optional fields, not required-but-blank ones.

3. Content type skeletons

how-to:

This how-to guide will help you {goal}.

## Prerequisites

- Item 1

## Steps

### Step 1: {first step}

{instructions}

### Step 2: {second step}

{instructions}

## Next steps

- [Related doc](link)

concept:

{One-paragraph summary of the concept.}

## Overview

{Detailed explanation}

## How it works

{Technical details}

## Key takeaways

- Point 1

quickstart:

This quickstart will get you {outcome} in under {time}.

## Prerequisites

- Item 1

## 1. {First step}

## 2. {Second step}

## What's next?

reference:

## Overview

{Brief description of what this reference covers.}

## Parameters

| Parameter | Type | Description |
| --------- | ---- | ----------- |
|           |      |             |

troubleshooting:

## Symptoms

{What the user observes}

## Common causes

### Cause 1: {description}

**Solution:** {fix}

4. Register in the sidebar

Sidebar order is controlled per directory by meta.json, not by file names. Open content/docs/{section}/meta.json and add the slug (file name, no extension) to pages:

{
  "title": "Get started",
  "pages": ["index", "arbitrum-introduction", "{slug}"]
}

Place it in logical order within the existing entries. A "..." entry means "everything else, in file order", so a new page appears automatically wherever "..." sits — add it explicitly only when it needs a specific position. To list a page that lives in another directory, use a relative path entry such as "../other-dir/page". Never write a "[Label](/docs/path)" entry for a page in this repo: it puts the page on two sidebar nodes and pnpm test fails.

Terminology enforcement

Before writing any content, apply these substitutions:

Write thisNot this
Parent chain / Child chainL1/L2, Layer 1/Layer 2
appdapp, dApp
onchainon-chain
cross-chaincrosschain
Rolluprollup
AnyTrustanytrust
ERC-20, ERC-721ERC20
allowlist/denylistwhitelist/blacklist
bondstake (for proposing)
Your Arbitrum chainL3 Orbit chain

Post-creation checklist

After creating the file:

  1. Verify the sidebar entry and the page render: pnpm dev, then browse http://localhost:3000/{section}/{slug}. Use localhost, not 127.0.0.1 — on 127.0.0.1 React does not hydrate and every component looks broken.
  2. Run pnpm lint and pnpm types:check. Rule docs/frontmatter-schema validates every page against lib/page-schema.ts: a missing title or description fails this gate (the other fields are optional). types:check regenerates the collection and checks TypeScript; it does not validate every page's frontmatter.
  3. Confirm no broken links: pnpm check-links. It also validates #anchor fragments against the compiled heading ids; only anchors that exist at runtime alone are outside its reach.
  4. To reference a global variable, use <Var name="variableName" />; the value must exist in content/vars.json. Verify with pnpm vars:check.
  5. Before writing a banner, note or config table, browse content/partials/ (there is no catalog; the partials themselves are the index) and reuse an existing one instead of duplicating prose.

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Arbitrum L2 development best practices. Use when implementing bridges, Orbit chains, SDK integrations, or debugging cross-chain transactions. Triggers on Arbitrum, L2, rollup, bridge, retryable, Orbit, Nitro, or cross-chain contexts.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

OffchainLabs/arbitrum-docs2522026년 10월 24일 업데이트

Create or improve lightweight, brand-consistent SVG concept diagrams for the Arbitrum docs, using the official Google Drive infographic asset kit as the palette/style source. Use when asked to "make a diagram more efficient", replace a bloated haw-*.svg (draw.io PNG-in-SVG exports), replace an ASCII / box-drawing diagram in an MDX page with a real image, author a new concept diagram for content/docs/how-arbitrum-works or similar, or build a diagram from the Arbitrum brand assets. Hand-authored lean vector SVG — not Mermaid, not a full Excalidraw/draw.io pipeline.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

OffchainLabs/arbitrum-docs2522026년 10월 24일 업데이트

Use when asked to rebrand, restyle, re-pace, resize, or re-render an existing explainer video, when a video's labels are baked-in raster pixels that cannot be edited, or when building a new animated explainer for the Arbitrum docs from a prompt or a doc section.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

OffchainLabs/arbitrum-docs2522026년 10월 24일 업데이트

cast

무료

Foundry's cast CLI for Ethereum interactions. Use when querying blockchain data, calling contracts, sending transactions, encoding/decoding data, or debugging on-chain issues. Triggers on "cast", "get balance", "call contract", "decode calldata", "check tx", "get block".

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

OffchainLabs/arbitrum-docs2522026년 10월 24일 업데이트

Run full documentation quality audit, covering sidebar orphans, unused-file review, MDX structure, internal links, glossary references, contract addresses, variables, formatting, frontmatter, tests, and types. Triggers on "audit docs", "check docs quality", "find problems", "content audit".

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

OffchainLabs/arbitrum-docs2522026년 10월 24일 업데이트

LLM Utility: Generate minimal project context map before starting any workflow. ALWAYS run this first at session start, before /prd, before /implement, or after context loss. Triggers on 'context prep', 'orient me', 'start', 'new session'.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

OffchainLabs/arbitrum-docs2522026년 10월 24일 업데이트

OffchainLabs의 스킬 모두 보기

이 스킬의 문제 신고