Skip to content
Back to skills

Archive Ticket

ASecurity

Complete commit workflow - format, archive, update changelog, and commit in one operation.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 27, 2026
documentationgobashgit

Security analysis

A100/100

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

Scanned September 27, 2026

npx -y skills add David-Li0406/meta-skill-evloving --skill archive-ticket --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Archive Ticket?

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

Security grade badge for Archive Ticket
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/david-li0406-archive-ticket/badge)](https://www.skillsdirectory.com/skills/david-li0406-archive-ticket)

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: archive-ticket
description: Complete commit workflow - format, archive, update changelog, and commit in one operation.
allowed-tools: Bash
user-invocable: false
---

# Archive Ticket

Complete commit workflow after user approves implementation.

## When to Use

Use this skill after user approves implementation. The script handles formatting, archiving, changelog, and commit.

**IMPORTANT**: Always use the script. Never manually move tickets or create changelogs.

**Note**: Archiving requires being on a named branch (not detached HEAD). The script will exit with an error if not on a branch.

## Instructions

Run the bundled script with ticket path, commit message, repo URL, and optional description:

```bash
bash .claude/skills/archive-ticket/scripts/archive.sh <ticket-path> <commit-message> <repo-url> [description] [files...]
```

Example:

```bash
bash .claude/skills/archive-ticket/scripts/archive.sh \
  .work/tickets/20260115-feature.md \
  "Add new feature" \
  https://github.com/org/repo \
  "Enables users to authenticate with session-based login, addressing the need for secure access control." \
  src/foo.ts src/bar.ts
```

## Commit Message Rules

- **NO prefixes** - Do not use `[feat]`, `[fix]`, `feat:`, `fix:`, etc.
- Start with a present-tense verb (Add, Update, Fix, Remove, Refactor)
- Keep the title concise (50 characters or less)
- Focus on **WHAT** changed in the title

### Examples

```
Add JSDoc comments to gateway exports
Update traceparent format with W3C spec
Fix session decryption to handle invalid tokens
Remove unused RegisterTool type after consolidation
```

## Description Rules

The optional description parameter captures the **WHY** behind the change:

- 1-2 sentences explaining the motivation or problem being solved
- Extract from the ticket's Overview section
- Appears as a second line in CHANGELOG entries
- Used by `/pull-request` to generate comprehensive PR descriptions

### Example

```
"Enables users to authenticate with session-based login, addressing the need for secure access control."
```

## File Locations

The script manages two separate locations:

- **Tickets** are archived to `.work/tickets/archive/<branch>/`
- **Changelogs** are written to `.work/changelogs/<branch>.md`

This separation keeps change requests (tickets) distinct from change summaries (changelogs).

## CHANGELOG Format

Entries are automatically categorized based on commit verb and include optional descriptions:

### Categorization

- **Added**: Add, Create, Implement, Introduce
- **Changed**: Update, Fix, Refactor (default)
- **Removed**: Remove, Delete

### Entry Format

```markdown
- Commit title ([hash](url)) - [ticket](file.md)
  Description explaining why this change was made.
```

The description line is optional but recommended for generating comprehensive PR summaries.

Files in this skill

  • SKILL.md2.8 KB
  • scripts/archive.sh2.7 KB

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.

Comments

Loading comments…