Skip to content
Back to skills

Task Titles

ASecurity

Checks task title helpers in the app. Use when writing or reviewing a task title helper. Not for file names (file-naming).

  • 3 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added October 18, 2026
developmentnode

Security analysis

A100/100

Pro scans all 10 files and shows the line behind each finding

Scanned October 18, 2026

npx -y skills add zakariaf/ReactNative-Skills --skill task-titles --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Task Titles?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Task Titles
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/zakariaf-task-titles/badge)](https://www.skillsdirectory.com/skills/zakariaf-task-titles)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: task-titles
description: Checks task title helpers in the app. Use when writing or reviewing a task title helper. Not for file names (file-naming).
---

# Task titles

Keeps task title helpers pure and proves it with a checker.

## Rules that must hold

1. **Named exports only.** A default export lets every importer rename the function, so searches miss call sites.
2. **No clock in title helpers.** Reading `Date.now()` makes the same task render different titles in tests and on devices.

## Workflow

1. Read [references/guide.md](references/guide.md) before writing the helper.
2. Copy `templates/src/features/tasks/task-title.ts` and compare it with [examples/worked.md](examples/worked.md).
3. Run `node ${CLAUDE_SKILL_DIR}/scripts/check-titles.mjs .` and fix every FAIL line.

## Definition of done

- [ ] The helper has named exports only.
- [ ] `node ${CLAUDE_SKILL_DIR}/scripts/check-titles.mjs .` prints `RESULT: PASS`

## Anti-patterns

- **Silencing the checker.** Fix the helper instead; the check exists because the mistake is easy to make.

## Files in this skill

| File | What it is | Read/run when |
|---|---|---|
| [references/guide.md](references/guide.md) | The rules and a worked example | Workflow step 1 |
| [examples/worked.md](examples/worked.md) | A finished helper | Workflow step 2 |
| `templates/src/features/tasks/task-title.ts` | The helper template | Workflow step 2 |
| `scripts/check-titles.mjs` | The checker | Workflow step 3 |
| `scripts/selftest.mjs` | Proves the checker | After changing it |
| `scripts/check-lib.mjs` | Shared script helper (synced) | Never by hand |
| `tests/fixtures/` | Self-test inputs | When adding a rule |

## Related skills

- `file-naming` - naming files and exports.

Files in this skill

  • SKILL.md1.7 KB
  • examples/worked.md107 B
  • references/guide.md96 B
  • scripts/check-lib.mjs699 B
  • scripts/check-titles.mjs369 B
  • scripts/selftest.mjs171 B
  • templates/src/features/tasks/task-title.ts120 B
  • tests/fixtures/bad-clock/EXPECT.txt25 B
  • tests/fixtures/bad-clock/src/a.ts41 B
  • tests/fixtures/good/src/a.ts33 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.