Docs.add content

From gpsaggese/helpers · View interactive version

Docs.add content is an AI agent skill from the GitHub repository gpsaggese/helpers. Add content to the docs without redundancy and report skipped parts

How to use this skill

Skill file

Goal

1. The content <CONTENT> to add: text, or a path to a file holding the text

2. Optionally, the target <TARGET>: a file in <DOCS_DIR> (existing or new) or

a header inside it

Conventions

### Convention for file names, ### Format of each doc, and

### Do not add redundancy

(.tutorial.md, .how_to_guide.md, .reference.md, .explanation.md)

Workflow

Resolve the docs dir

```bash

> cd $(git rev-parse --show-toplevel)

```

```bash

> git config --file .gitmodules --get-regexp 'submodule\..*\.path' | grep -w helpers_root

```

Read the content

Survey the docs

```bash

> find <DOCS_DIR> -name "*.md" | sort

```

```bash

> rg -i "<TERM>" <DOCS_DIR> --glob "*.md"

```

topic

Classify each chunk

.claude/skills/rules.add/SKILL.md)

with only .explanation.md files on the topic)

<DOCS_DIR>/<COMPONENT>/<AUDIENCE>.<TOPIC>.<DIATAXIS_TAG>.md. Create it only

if <TARGET> names it

Choose the placement

poor home, report the chunk as Does not fit

ask the user instead of guessing

file's order logic (e.g., alphabetical or by workflow stage)

Write the content

Report

added

Constraints

the edited files

Examples

```

Added to docs/tools/git/all.git.how_to_guide.md:

```

```

Redundant:

already in docs/tools/git/all.git.how_to_guide.md,

#### Always work in a branch ("It is ok to open multiple branches for a

given task if needed")

```

```

Added to docs/tools/git/all.git.how_to_guide.md:

```

```

Does not fit:

detail, move it to the docstring of _parse_branch()

```

Verification

thing

the key terms of each added bullet)

Diataxis type

.claude/skills/text.rules.md

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.