archive-by-created-date

archive-by-created-date is a skill for Claude Code, Codex from pbeens/obsidian-agents.md. It costs 59 tokens per session (495 once invoked), scanned A, original, MIT.

A note-organizing helper that moves daily notes or clippings into year-and-month folders based on their created date. It keeps the original filenames.

In plain words
What is it for?
Use it to archive items from Daily Notes/ or Clippings/ into folders such as 2025/12/, after reviewing and confirming the proposed moves.
Why use it?
It removes older notes from crowded source folders while preserving a predictable archive structure. It stops when a note's date cannot be determined confidently.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to archive items from Daily Notes/ or Clippings/ into folders such as 2025/12/, after reviewing and confirming the proposed moves.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/pbeens/obsidian-agents.md/archive-by-created-date
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add pbeens/obsidian-agents.md --skill archive-by-created-date
Clone the repo
git clone --depth 1 https://github.com/pbeens/obsidian-agents.md

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for archive-by-created-date

README.md
[![agentmods](https://agentmods.dev/badge/skills/pbeens/obsidian-agents.md/archive-by-created-date/github.svg)](https://agentmods.dev/skills/pbeens/obsidian-agents.md/archive-by-created-date)
Your own site
<a href="https://agentmods.dev/skills/pbeens/obsidian-agents.md/archive-by-created-date"><img src="https://agentmods.dev/badge/skills/pbeens/obsidian-agents.md/archive-by-created-date/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for archive-by-created-date

Your own site · 80×15
<a href="https://agentmods.dev/skills/pbeens/obsidian-agents.md/archive-by-created-date"><img src="https://agentmods.dev/badge/skills/pbeens/obsidian-agents.md/archive-by-created-date.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 59 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 495 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00059 $0.00495
Opus 5 $0.00030 $0.00247
Sonnet 5 $0.00012 $0.00099
Haiku 4.5 $0.00006 $0.00049

Measured 10d ago against content hash c4f49af41609, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

archive-by-created-date scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/archive-by-created-date/SKILL.md · 64 lines

What it actually says

Archive by Created Date

Use this skill to move notes into a year/month archive structure based on their created date.

Purpose

Keep Daily Notes/ and Clippings/ organized by moving older notes into dated archive folders without changing their filenames.

Scope

  • Source folders: Daily Notes/ or Clippings/
  • Target folders: Daily Notes/YYYY/MM/ or Clippings/YYYY/MM/
  • Folder names use a four-digit year and two-digit month.
  • Preserve the original filename.

Created Date Rule

  • Read the note's created date from frontmatter when available.
  • If frontmatter is missing, use the created date shown in the note heading or nearby metadata if the date is explicit.
  • Route the note to the matching YYYY/MM/ folder.
  • If the date cannot be determined confidently, stop and ask for guidance.

Confirmation Rule

  • Always confirm the move plan before changing files.
  • State the source folder, file count, target year/month folder, and whether the move affects daily notes or clippings.
  • Do not move files until the plan has been confirmed.

Workflow

  1. Identify candidate notes in the source folder.
  2. Read the created date for each note.
  3. Group notes by year and month.
  4. Confirm the planned move with the user.
  5. Create the target YYYY/MM/ folders if needed.
  6. Move the notes into the matching archive folders.
  7. Update the nearest folder README or index if one exists.
  8. Leave filenames unchanged unless the user asks for renaming.

Safety

  • Do not copy files when the user asked to move them.
  • Do not invent dates.
  • Do not move notes whose created date is unclear.
  • Do not rename files during archival unless explicitly requested.
  • Keep the archive structure consistent between Daily Notes/ and Clippings/.

Output Expectations

  • Notes moved into the appropriate year/month folder.
  • The move plan confirmed before the change.
  • Folder indexes updated when needed.
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 64 lines · 59 tokens per session scan A c4f49af41609

Subscribe to this mod's changes

archive-by-created-date is a skill published in the GitHub repository pbeens/obsidian-agents.md (20 stars, last pushed 4mo ago), licensed MIT. It adds 59 tokens to every session and 495 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.