agentleFS
linuxfoundationlinuxfoundation/insights/.claude/skills/tech-writer/Skill.md

tech-writer

Skill288 starsChanged 51 days agoMITView on GitHub

Write public-facing documentation for new features, improvements, or changes in LFX Insights. Invoke /tech-writer when: Rule: New feature docs go in docs/features/. New metric docs go in docs/metrics/. Clarifications or concept docs go in docs/introduction/. Each doc lives in its own folder as index.md: Images go in: Reference images with relative paths: No frontmatter for standard doc pages — regular docs in docs/features/, docs/metrics/, and docs/introduction/ start directly with the # heading (unlike blog posts which use YAML frontmatter). Special…

9 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

7 rules. 0 are common, 2 are distinctive, and 5 are very specific to this project.

  • 0

    Common

    Most of the 7 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 5

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Write public-facing documentation for new features, improvements, or changes in LFX Insights.

    line 3
  2. Very specific:

    When /tech-writer is invoked, follow these steps:

    line 126
  3. Distinctive:

    Ask the user: _"What is the feature?

    line 132
  4. Very specific:

    Read relevant source files to understand the implementation — check frontend/app/pages/, frontend/app/components/modules/, and …

    line 133
  5. Very specific:

    Check if a doc already exists in frontend/docs/ for this topic — if so, update rather than create

    line 134
  6. Very specific:

    After creating a new file, add it to the sidebar in frontend/docs/.vitepress/config.ts:

    line 169
  7. Distinctive:

    Should this link to or from any other doc page?

    line 184

“Common” is measured: kept by at least 6 in 10 of the 7 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
Skill.md

Tech Writer

Write public-facing documentation for new features, improvements, or changes in LFX Insights.

When to Use

Invoke /tech-writer when:

  • A new feature has been built and needs a doc page
  • An existing feature has changed and its doc needs updating
  • A new metric, concept, or configuration option needs to be explained publicly
  • The user says "write docs for X", "document this feature", "update the docs"

Docs Site Overview

  • Location: frontend/docs/
  • Framework: VitePress (Markdown → static site)
  • Live URL: https://insights.linuxfoundation.org/docs/
  • Local preview: cd frontend && pnpm docs:dev → http://localhost:5173
  • Sidebar config: frontend/docs/.vitepress/config.ts — every new page must be added here

Sidebar Sections

SectionFolderPurpose
Introductiondocs/introduction/What Insights is, data sources, contributions, maintainers
Metricsdocs/metrics/Health score, contributors, popularity, development, security
Featuresdocs/features/User-facing product features (Copilot, repo groups, collections)
Moredocs/more/FAQ, glossary

Rule: New feature docs go in docs/features/. New metric docs go in docs/metrics/. Clarifications or concept docs go in docs/introduction/.

File Structure

Each doc lives in its own folder as index.md:

frontend/docs/features/my-new-feature/index.md

Images go in:

frontend/docs/images/my-new-feature-screenshot.png

Reference images with relative paths:

![Alt text](../../images/my-new-feature-screenshot.png)

Markdown Conventions

No frontmatter for standard doc pages — regular docs in docs/features/, docs/metrics/, and docs/introduction/ start directly with the # heading (unlike blog posts which use YAML frontmatter). Special VitePress pages (such as frontend/docs/index.md with layout: home) may use YAML frontmatter when required by the framework.

Heading hierarchy:

# Feature Name ← page title, used in sidebar if not overridden

## Overview ← first section, always present

## How It Works ← or "Using X", "Key Concepts", etc.

## Example ← include screenshots when possible

## Configuration ← if applicable

## FAQ ← if applicable

VitePress callout blocks:

::: warning ⚠️ Heads up
Something the user should be aware of.
:::

::: info
Neutral informational note.
:::

::: tip
Helpful suggestion or shortcut.
:::

Links — always use relative paths within docs:

[Health Score](../../metrics/health-score/index.md)
[Data Sources](../../introduction/data-sources/index.md)

Tables:

| Column A | Column B |
| -------- | -------- |
| Value    | Value    |

Images:

![Descriptive alt text](../../images/feature-name.png)

Writing Style

  • Audience: open source maintainers, contributors, and project leads — technically literate but not necessarily engineers
  • Tone: clear, direct, informative — not marketing-heavy
  • Perspective: second person ("you can", "your project") for instructions; third person for concept explanations
  • Length: as long as needed, no padding — each section should earn its place
  • No jargon without a definition or link to the glossary

Avoid:

  • "Simply", "easily", "just" — don't minimize complexity
  • Passive voice where active is clearer
  • Repeating the page title verbatim in the first sentence

Workflow

When /tech-writer is invoked, follow these steps:

Step 1 — Understand the feature

Before writing anything:

  1. Ask the user: "What is the feature? What does it do for the end user?" if not already described
  2. Read relevant source files to understand the implementation — check frontend/app/pages/, frontend/app/components/modules/, and frontend/server/api/
  3. Check if a doc already exists in frontend/docs/ for this topic — if so, update rather than create

Step 2 — Decide placement

Based on what the feature is:

  • New product feature (UI, workflow, user action) → docs/features/<slug>/index.md
  • New metric or data point → docs/metrics/<slug>/index.md
  • Concept, term, or data explanation → docs/introduction/<slug>/index.md or add to docs/more/glossary/index.md
  • Update to existing page → edit the existing file

Step 3 — Draft the doc

Use the structure:

# <Feature Name>

## Overview

<2–4 sentence description of what this feature is and why it matters to the user.>

## <Core Section>

<Explain how it works, what the user sees, what actions they can take.>

## Example

<Screenshot or walkthrough. If no screenshot is available yet, add a placeholder note.>

## <Additional Sections as needed>

Step 4 — Update the sidebar

After creating a new file, add it to the sidebar in frontend/docs/.vitepress/config.ts:

// In the correct section:
{ text: 'My New Feature', link: '/features/my-new-feature/index.md' },

Match the casing and style of surrounding entries.

Step 5 — Confirm with user

Present the draft and ask:

  • Does the description match how you'd explain this to a user?
  • Are there screenshots you want to include?
  • Should this link to or from any other doc page?

Example Invocations

/tech-writer The team just shipped "Saved Filters" — users can now bookmark their current filter state and share it via URL. Write the docs.

/tech-writer Update the Repository Groups doc to mention the new self-service request form we added.

/tech-writer We added a new "Community Voice" tab to project pages that shows sentiment from GitHub Discussions. Document it.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.