aifolimizer: Skill for Claude Code

.claude/skills/weekly-mirror/SKILL.md

weekly-mirror is a skill for Claude Code from tusharagg1/aifolimizer. It costs 83 tokens per session (2,389 once invoked), scanned A, original, MIT.

A weekly review of discretionary trading performance compared with long-term index or exchange-traded fund holdings. It calculates results such as win rate, average win and loss, and profit or loss, then recommends whether to continue, pause, or stop discretionary trading.

In plain words
What is it for?
Use it for a weekly trading review, after a losing streak, or before increasing position sizes.
Why use it?
It replaces memory and impressions with a recorded performance review that makes gains and losses harder to overlook.

Skill for Claude Code

Written for Claude Code: installed under .claude/. Also seen: positional $N argument.

This is tusharagg1/aifolimizer's own configuration. It tells Claude Code how to work on aifolimizer itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything aifolimizer configures →

Part of the aifolimizer plugin — 28 skills, 2 agents shipped together

Reuse

Borrowing it

Nothing to install: this file belongs to tusharagg1/aifolimizer. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/tusharagg1/aifolimizer/master/.claude/skills/weekly-mirror/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/tusharagg1/aifolimizer

Made for: Claude Code.

Or install aifolimizer, the plugin that ships this one along with the rest of its 28 skills, 2 agents.

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 weekly-mirror

README.md
[![agentmods](https://agentmods.dev/badge/skills/tusharagg1/aifolimizer/weekly-mirror/github.svg)](https://agentmods.dev/skills/tusharagg1/aifolimizer/weekly-mirror)
Your own site
<a href="https://agentmods.dev/skills/tusharagg1/aifolimizer/weekly-mirror"><img src="https://agentmods.dev/badge/skills/tusharagg1/aifolimizer/weekly-mirror/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 weekly-mirror

Your own site · 80×15
<a href="https://agentmods.dev/skills/tusharagg1/aifolimizer/weekly-mirror"><img src="https://agentmods.dev/badge/skills/tusharagg1/aifolimizer/weekly-mirror.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 83 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,389 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.00083 $0.02389
Opus 5 $0.00042 $0.01195
Sonnet 5 $0.00017 $0.00478
Haiku 4.5 $0.00008 $0.00239

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

Security

Grade A, and why

weekly-mirror 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 8d 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.

.claude/skills/weekly-mirror/SKILL.md · 157 lines

How it starts

The opening of the file, as written. The whole thing — 157 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Weekly Mirror (Cold Performance Review)

Goal

One scroll-length, no-sugarcoat performance review of the user's discretionary trading vs their boring-core (index / ETF) holdings. Tells the user the truth even when uncomfortable. Recommends one of: continue, cool-off 30 days, suspend discretionary.

The point: most retail traders never measure their real win rate. They remember winners, forget losers, and feel like they're doing fine until the account is down. This skill makes the math impossible to ignore.

State check (BEFORE any tool calls)

Read .claude/context/STATE.md. If last_mirror_date is within the last 6 days, output:

"Weekly mirror ran on last_mirror_date - only N days ago. Run again? (yes to proceed)" Wait for user confirmation before continuing. If user says yes or forced, proceed normally.

When to invoke

  • User asks "how am I doing?", "am I making money?"
  • Sunday evening review (can be scheduled via /loop)
  • After any 7-day streak of losses
  • Before any decision to increase position sizes

Stage 0 - Decision Memory (load FIRST)

Before the review, load prior decisions so the mirror reflects the logged record, not memory:

  • mcp__aifolimizer__get_cross_ticker_lessons with max_lessons=3 - portfolio-level win/loss patterns
  • For any name you single out, load mcp__aifolimizer__get_ticker_decision_history (ticker=…, max_decisions=5) and mcp__aifolimizer__get_ticker_reflection (symbol=…, n=3).

How to run

Step 1 - Pull state (parallel):

  1. mcp__aifolimizer__get_profile - total NAV per account, cash balances
  2. mcp__aifolimizer__get_portfolio - current holdings + day/total returns
  3. mcp__aifolimizer__score_recommendations - mark-to-market all open recs from pre-trade-check and other skills, mark stops/targets hit
  4. mcp__aifolimizer__get_live_track_record with windows_days=[7,30,90] (single call returns all three windows) - win rate + P&L per window
  5. mcp__aifolimizer__get_alpha_attribution with lookback_days=90 - am I beating the index? (benchmarks are fixed internally: SPY / XEQT / TSX / QQQ - the tool takes no benchmarks arg)
  6. mcp__aifolimizer__snapshot_portfolio_equity - append today's NAV to history (idempotent per day)
  7. mcp__aifolimizer__get_cross_ticker_lessons with max_lessons=5 - recurring patterns from prior stop-outs
  8. mcp__aifolimizer__get_personal_context - account waterfall + contribution room so DCA/verdict actions are tailored. If present=false, skip personalization gracefully.

Read the full file on GitHub · 157 lines

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. 8d ago First seen · 157 lines · 83 tokens per session scan A 70c84b7532d8

Subscribe to this mod's changes

weekly-mirror is a skill published in the GitHub repository tusharagg1/aifolimizer (2 stars, last pushed 7d ago), licensed MIT. It adds 83 tokens to every session and 2,389 once invoked, about $0.0004 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.

Related

Other skills, from other repositories

quantoracle

63 deterministic quantitative finance calculators + 10 composite workflows via MCP. Options pricing, Greeks, exotic derivatives, risk metrics, portfolio optimization, Monte Carlo, statistics, crypto/DeFi, FX/macro, TVM, strategy backtesting, rebalance planning, options strategy selection, hedging. 1,000 free…

QuantOracledev/quantoracle · 92 tokens

gitee-expert

You have access to Gitee (gitee.com), China's largest GitHub-style platform. This skill teaches the effective workflows for discovery, intel, translation and webhook monitoring.

sandraschi/gitee-mcp · 0 tokens

transcribe-filing

Transcribe an insurance rate filing or internal rating manual into an OpenRater workbook, then validate, build, verify, and rate it through the OpenRater MCP tools. Use when the user shares a filing/manual (PDF or pages) and wants it executable — "build this filing", "digitize this rating manual", "make this rateable"…

vadim-filimonov/openrater · 102 tokens

tushare

A Python interface for Tushare, a financial data service that provides market and company information for stocks, funds, futures, and digital assets. It returns queried data as pandas tables.

HKUDS/Vibe-Trading · 79 tokens

geopolitical-risk

Geopolitical risk analysis: quantify crisis signals, identify precursors, and build event-driven strategies for war, sanctions, and supply disruption scenarios.

HKUDS/Vibe-Trading · 34 tokens

social-media-intelligence

Social media intelligence: financial signal extraction from Twitter/X, Telegram, Discord, and Reddit for sentiment-driven trading strategies.

HKUDS/Vibe-Trading · 28 tokens