# Spec metadata

> Spec metadata is an open-source agent skill for developer tools. Collects timestamp and git or jj repo metadata for research and handoff documents. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/jeffh/claude-plugins/tree/main/humanlayer/skills/spec-metadata
- **Repository:** https://github.com/jeffh/claude-plugins
- **GitHub stars:** 12
- **License:** Apache-2.0
- **Skill name:** spec-metadata
- **Collection:** https://github.com/jeffh/claude-plugins
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-03

## About

This skill gives the agent a repeatable way to stamp documentation with context about where it was written. It runs shell commands to read the current date and time with timezone, a filename-safe timestamp, the repository root and name, the active branch or bookmark, and the current commit hash. Separate command sets cover Git and Jujutsu (jj) repositories.

The skill also defines a fixed output block for presenting those values and a YAML frontmatter template that places them in fields such as date, git_commit, branch, repository and last_updated. It notes practical conventions, such as using underscores and 24-hour time in filenames and always including a timezone in the date field.

It is intended for work inside a git or jj checkout and needs a shell with those tools available. The skill is granted Bash access in its frontmatter and includes no bundled scripts; it relies on the commands it lists.

## When your agent uses it

> Generates metadata for research documents and specifications including date/time, git commit, branch, and repository info. Use when creating research documents, handoffs, or any documentation that needs timestamp and git metadata.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/jeffh/claude-plugins/tree/HEAD/humanlayer/skills/spec-metadata)
- [Asks for: Bash](https://github.com/jeffh/claude-plugins/blob/HEAD/humanlayer/skills/spec-metadata/SKILL.md)
- [License: Apache-2.0](https://github.com/jeffh/claude-plugins/tree/HEAD/humanlayer/skills/spec-metadata)

## Features

- **Date and timezone capture:** Reads the current date and time with its timezone for use in documents.
- **Filename timestamps:** Produces a sortable, filename-safe timestamp format with 24-hour time.
- **Git repository details:** Retrieves the repo root, repo name, active branch and current commit hash.
- **Jujutsu support:** Provides equivalent commands for jj workspaces, including bookmarks and short commit IDs.
- **Frontmatter template:** Supplies a YAML block layout for recording metadata at the top of documents.
- **Standard output format:** Defines a consistent summary layout for reporting the collected metadata.

## Good for

- Add timestamp and commit metadata to a research document
- Create a handoff note that records the current branch and commit
- Write a specification with a date-stamped filename
- Record which repository and bookmark a planning document refers to

## Install

### Claude Code

This skill ships in the `humanlayer` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add jeffh/claude-plugins
/plugin install humanlayer@jeffh-claude-plugins
```

Or copy only this skill to `~/.claude/skills/spec-metadata`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/jeffh/claude-plugins.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/spec-metadata &&
cp -R "$tmp/humanlayer/skills/spec-metadata" ~/.claude/skills/spec-metadata &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/spec-metadata` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/spec-metadata` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/jeffh/claude-plugins.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/spec-metadata &&
cp -R "$tmp/humanlayer/skills/spec-metadata" ~/.agents/skills/spec-metadata &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/spec-metadata` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/spec-metadata` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/jeffh/claude-plugins.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/spec-metadata &&
cp -R "$tmp/humanlayer/skills/spec-metadata" ~/.cursor/skills/spec-metadata &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/spec-metadata` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/jeffh/claude-plugins.git --path humanlayer/skills/spec-metadata
```

Or copy the folder to `~/.gemini/skills/spec-metadata` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/spec-metadata`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/jeffh/claude-plugins.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/spec-metadata &&
cp -R "$tmp/humanlayer/skills/spec-metadata" ~/.copilot/skills/spec-metadata &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/spec-metadata` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/jeffh/claude-plugins.git
```

Then copy `claude-plugins/humanlayer/skills/spec-metadata` into your agent's skills folder as `spec-metadata`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What does the skill need to run?

It uses Bash commands, so the agent needs shell access. Git commands are used in Git repositories and jj commands in Jujutsu repositories.

### Does Spec metadata change any files?

The skill itself only collects metadata with read-oriented commands and gives a template for frontmatter. Writing the document is left to the agent's task.

### When does Spec metadata activate?

It activates when creating research documents, handoffs, implementation plans, or other documentation that needs timestamp and git metadata.

### How do I install Spec metadata in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/spec-metadata to use it in all your projects, or to .claude/skills/spec-metadata in one project. Or install the humanlayer plugin, which includes it: /plugin marketplace add jeffh/claude-plugins, then /plugin install humanlayer@jeffh-claude-plugins.

### Does Spec metadata run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Spec metadata?

Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.

### What are the best alternatives to Spec metadata?

The closest alternatives to Spec metadata are Git, Repo story time, Commit, GitHub issue creator and Commit.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Git](https://ai-powered.com/skills/git-jasgujral): Git is an open-source agent skill for developer tools.
- [Repo story time](https://ai-powered.com/skills/repo-story-time): Repo story time is an open-source agent skill for developer tools.
- [Commit](https://ai-powered.com/skills/commit-jeffh): Commit is an open-source agent skill for developer tools.
- [GitHub issue creator](https://ai-powered.com/skills/github-issue-creator): GitHub issue creator is an open-source agent skill for developer tools.
- [Commit](https://ai-powered.com/skills/commit): Commit is an open-source agent skill for developer tools.
- [Commit push PR](https://ai-powered.com/skills/commit-push-pr): Commit push PR is an open-source agent skill for developer tools.
- [Git workflow](https://ai-powered.com/skills/git-workflow-nabwinsaud): Git workflow is an open-source agent skill for developer tools.
- [Setup matt pocock skills](https://ai-powered.com/skills/setup-matt-pocock-skills): Setup matt pocock skills is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/spec-metadata
