Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/nyxCore-Systems/letter-for-myselfnpx agentmods add skills/nyxcore-systems/letter-for-myself/letter-initWrote 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.
[](https://agentmods.dev/skills/nyxcore-systems/letter-for-myself/letter-init)<a href="https://agentmods.dev/skills/nyxcore-systems/letter-for-myself/letter-init"><img src="https://agentmods.dev/badge/skills/nyxcore-systems/letter-for-myself/letter-init/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.
<a href="https://agentmods.dev/skills/nyxcore-systems/letter-for-myself/letter-init"><img src="https://agentmods.dev/badge/skills/nyxcore-systems/letter-for-myself/letter-init.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00022 | $0.02139 |
| Opus 5 | $0.00011 | $0.01069 |
| Sonnet 5 | $0.00004 | $0.00428 |
| Haiku 4.5 | $0.00002 | $0.00214 |
Grade A, and why
letter-init 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.
How it starts
The opening of the file, as written. The whole thing — 317 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Letter Init Skill
This skill sets up the complete "Letter to Blog" pipeline that automatically converts your .memory/ session letters into polished blog posts using GitHub Actions and the Anthropic API.
When to Use
Invoke this skill when:
- User types
/letter-init - User wants to set up blog post generation from memory files
- User is setting up the repository for the first time
What It Does
Creates the complete CI/CD infrastructure:
.memory/folder (if not exists)drafts/folder for generated blog posts.github/scripts/blog_gen.py- Python script using Anthropic API.github/scripts/vibe_requirements.txt- Dependencies.github/workflows/vibe_publisher.yml- GitHub Action workflow
Execution Steps
1. Create Required Directories
mkdir -p .memory
mkdir -p drafts
mkdir -p .github/scripts
mkdir -p .github/workflows
2. Create the Blog Generator Script
Write the file .github/scripts/blog_gen.py with the following content:
#!/usr/bin/env python3
"""
Blog Generator for Letter to Blog Pipeline
Converts .memory/*.md files into polished blog posts using Anthropic API
"""
import os
import sys
import json
from pathlib import Path
from datetime import datetime
import anthropic
from dotenv import load_dotenv
# Load environment variables
load_dotenv()
# Config paths
GLOBAL_CONFIG = Path.home() / ".config" / "letter-for-my-future-self" / "config.json"
PROJECT_CONFIG = Path(".letter-config.json")
def get_api_key():
"""Get API key from environment, project config, or global config (in that order)"""
# 1. Environment variable (highest priority)
api_key = os.getenv('ANTHROPIC_API_KEY')
if api_key:
print(" Using API key from environment variable")
return api_key
# 2. Project-level config
if PROJECT_CONFIG.exists():
try:
config = json.loads(PROJECT_CONFIG.read_text())
api_key = config.get('anthropic_api_key')
if api_key:
print(" Using API key from project config")
return api_key
except (json.JSONDecodeError, IOError):
pass
# 3. Global config (fallback)
if GLOBAL_CONFIG.exists():
try:
config = json.loads(GLOBAL_CONFIG.read_text())
api_key = config.get('anthropic_api_key')
if api_key:
print(" Using API key from global config")
return api_key
except (json.JSONDecodeError, IOError):
pass
return None
def get_latest_memory_file():
"""Find the most recent letter file in .memory/"""
memory_dir = Path(os.path.abspath('.memory'))
if not memory_dir.exists():
print("❌ .memory/ directory not found")
sys.exit(1)
# Find all letter_*.md files
letter_files = sorted(memory_dir.glob('letter_*.md'), reverse=True)
if not letter_files:
print("❌ No letter files found in .memory/")
sys.exit(1)
return letter_files[0]
def generate_blog_post(memory_content: str) -> str:
"""Use Anthropic API to convert memory file to blog post"""
api_key = get_api_key()
if not api_key:
print("❌ No API key found. Set ANTHROPIC_API_KEY or run --setup")
sys.exit(1)
client = anthropic.Anthropic(api_key=api_key)
prompt = f"""You are a technical blog writer. Convert this development session memory into an engaging, public-ready blog post.
INPUT (Session Memory):
{memory_content}
REQUIREMENTS:
1. Transform technical decisions into narrative insights
2. Keep the "Pain Log" as "Lessons Learned" or "Challenges"
3. Make it readable for a general developer audience
4. Add markdown frontmatter with: title, date, tags, excerpt
5. Use proper markdown formatting with headers, code blocks, lists
6. Maintain technical accuracy but improve readability
OUTPUT FORMAT:
---
title: "[Engaging Title]"
date: {datetime.now().strftime('%Y-%m-%d')}
tags: [relevant, tags, here]
excerpt: "Brief summary of the post"
---
[Blog post content in markdown]
Generate the blog post now:"""
message = client.messages.create(
model="claude-sonnet-4-20250514",
max_tokens=4096,
messages=[
{"role": "user", "content": prompt}
]
)
return message.content[0].text
def save_blog_post(content: str, source_file: Path):
"""Save generated blog post to drafts/"""
drafts_dir = Path(os.path.abspath('drafts'))
drafts_dir.mkdir(exist_ok=True)
# Generate filename based on source
timestamp = datetime.now().strftime('%Y-%m-%d')
output_file = drafts_dir / f"blog_{timestamp}_{source_file.stem}.md"
output_file.write_text(content, encoding='utf-8')
print(f"✅ Blog post generated: {output_file}")
return output_file
def main():
"""Main execution flow"""
print("🎨 Letter to Blog: Generating blog post...")
# Get latest memory file
memory_file = get_latest_memory_file()
print(f"📖 Reading: {memory_file}")
# Read content
memory_content = memory_file.read_text(encoding='utf-8')
# Generate blog post
print("🤖 Calling Anthropic API...")
blog_content = generate_blog_post(memory_content)
# Save to drafts
output_file = save_blog_post(blog_content, memory_file)
print(f"✅ Success! Blog post saved to: {output_file}")
print("🚀 Ready for review and publishing!")
if __name__ == "__main__":
main()
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.
- 10d ago First seen · 317 lines · 22 tokens per session scan A a9f19c5de3a8
letter-init is a skill published in the GitHub repository nyxCore-Systems/letter-for-myself (4 stars, last pushed 1mo ago), licensed MIT. It adds 22 tokens to every session and 2,139 once invoked, about $0.0001 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-31.
Other skills, from other repositories
import-prom-rule
Bulk import of a Prometheus alert rule YAML file (create a whole set of rules at once). Dedicated to handling a remote URL or local YAML text, automatically parsing the three formats groups / a plain rules array / a single rule. ⚠️ Do not use this skill for single-rule creation — when the user describes a single alert…
chinese-git-workflow
A reference for configuring Git with Chinese code-hosting services such as Gitee, Coding.net, GitLab China, and CNB, including SSH, HTTPS, credentials, CI, and repository mirroring.
configure-env-variables
Configures environment variables for Power Pages site settings to support ALM across environments. Creates environment variable definitions in Dataverse, guides the user through linking site settings to those variables via the Power Pages Management app, adds the variables to the solution, and generates a…
atmos-profiles
Atmos profiles: profile directories, --profile and ATMOSPROFILE activation, profile merge behavior, environment switching, and routing profile-specific auth/toolchain/config overrides.
webhook-management
Configure and validate CCAM webhook targets across supported chat, incident, automation, and generic providers. Use when listing provider requirements, creating or updating a target, scoping it to alert rules, sending a test notification, reviewing delivery history, or deleting a target.
monorepo-management
Master monorepo management with Turborepo, Nx, and pnpm workspaces to build efficient, scalable multi-package repositories with optimized builds and dependency management. Use when setting up monorepos, optimizing builds, or managing shared dependencies.