Back to Rules
๐Ÿ“‹

Q Skills CLAUDE.md

End-to-end skills for academic writing, data analysis, teaching, and research communication.

TyrealQ

by @TyrealQ

Sourced from TyrealQ/q-skills โ€” MIT

View profile
CLAUDE.md
> Sourced from [TyrealQ/q-skills](https://github.com/TyrealQ/q-skills) โ€” [MIT](https://github.com/TyrealQ/q-skills/blob/03790b7dbf5c5db37645ca19164d5ea1a07311ef/CLAUDE.md).

# CLAUDE.md

This file provides guidance to Claude Code when working with this repository.

## Repository Structure

```
q-skills/
|-- .claude-plugin/
|   `-- marketplace.json               # Plugin marketplace manifest (skills array, version)
|-- illustrations/                     # Sample outputs referenced from README
|   |-- q-infographics/
|   `-- q-presentations/
|-- skills/
|   |-- q-scholar/                     # Academic manuscript writing suite
|   |   |-- q-eda/
|   |   |-- q-intro/
|   |   |-- q-litreview/
|   |   |-- q-methods/
|   |   |-- q-multimodal/
|   |   |-- q-results/
|   |   `-- q-tf/
|   |-- q-educator/                    # Course content development toolkit
|   |-- q-infographics/                # Document to infographic conversion
|   |-- q-presentations/               # Content to branded slide decks
|   |-- commit/                        # Git commit with smart file grouping
|   |-- handoff/                       # Capture session decisions for clean resume
|   |-- learn/                         # Persist user preferences across sessions
|   |-- organize/                      # Audit structure, align to conventions, archive
|   `-- ship/                          # Full ship cycle: docs, commit, push
|-- README.md
|-- CHANGELOG.md
`-- LICENSE
```

## Skill Categories

The filesystem is flat, but skills group conceptually:

| Category       | Skills                          | Purpose                                            |
| -------------- | ------------------------------- | -------------------------------------------------- |
| Academic       | q-scholar, q-educator           | Manuscript writing, data analysis, teaching        |
| Visual content | q-infographics, q-presentations | Document-to-visual generation                      |
| Utility        | commit, handoff, learn, organize, ship | Git workflow, session handoff, preference persistence, structure audit |

## Skill Guidelines

Each skill follows the standard SKILL.md template (~65-97 lines):
- YAML frontmatter (`name`, `description` โ€” imperative verb lead, concise triggers)
- Plan Mode Guard (script-based skills only)
- `## Script Directory` / `## Dependencies` (if scripts exist)
- `## References` โ€” bulleted pointers to reference files, all referenced in body
- `## Core Principles` โ€” 5-7 terse, actionable bullets
- `## Workflow` โ€” `| Step | Action | Reference |` table format
- `## Scope` (optional) โ€” Include / Exclude
- `## Checklist` โ€” 4-8 verification items

Supporting folders:
- `scripts/` โ€” Python scripts for automation
- `references/` โ€” detailed instructions, templates, examples (extracted from SKILL.md)

Skill bundles (like q-scholar) can contain sub-skills:
- Parent `SKILL.md` orchestrates sub-skills
- Shared `references/` at parent level
- Sub-skill folders with their own `SKILL.md` and `references/`

## Script Path Convention

Skills with scripts or references MUST include a **Script Directory** section that uses the `${SKILL_DIR}` pattern:

```markdown
## Script Directory

Agent execution instructions:
1. Determine this SKILL.md file's directory path as `SKILL_DIR`.
2. Script path = `${SKILL_DIR}/scripts/<script-name>`.
3. Reference path = `${SKILL_DIR}/references/<ref-name>`.
```

All script, prompt, and reference paths in the skill MUST use `${SKILL_DIR}/...` โ€” never hardcode cache-relative paths like `skills/q-foo/scripts/...`. This ensures skills work correctly when loaded from the Claude Code plugin cache.

## Adding New Skills

1. Create folder in `skills/` with lowercase hyphenated name (see Naming Convention below)
2. Add `SKILL.md` with proper frontmatter
3. Add the skill path to the `skills` array in `.claude-plugin/marketplace.json`
4. Update `README.md` to include new skill
5. Update `CHANGELOG.md` for user-facing changes and bump the marketplace version (skip the CHANGELOG entry for internal chores per the git-workflow policy, but still bump the version)

## Naming Convention

- Skill folders: lowercase, hyphens
- Academic and visual-content skills use the `q-` prefix (e.g., `q-scholar`, `q-infographics`)
- Utility skills use bare verb names matching their invocation syntax (`commit`, `learn`, `ship`)
- Scripts: `snake_case.py`

Add to your project

Paste into your project's CLAUDE.md or ~/.claude/CLAUDE.md for global rules.

More for Python

MCP servers for Python

Browse all MCP servers โ†’

Browse by Tag

Get the Claude Code Starter Pack

Top CLAUDE.md rules for Next.js, TypeScript, Python, Go, and React โ€” free.