agentleFS
arunendapallyarunendapally/portfolio-copilot/skills/eod-snapshot/SKILL.md

eod-snapshot

Skill0 starsChanged 5 months agoMITView on GitHub

End-of-day portfolio close-out. Use when the user says "EOD analysis", "end of day", "market close summary", or "how did we close". Pulls final prices, computes day P&L, flags positions near SL/target, updates cash status, and sets tomorrow's setup.

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 2 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Write the day's snapshot to portfolio-snapshots/YYYY-MM-DD.json (same schema as session-open Step 4) so tomorrow's runs have a baseline.

    line 29
  2. Distinctive:

    If any GTT was cancelled today (check cancellation reasons in GTT objects), flag it prominently: positions may be unprotected overnight.

    line 34
  3. Distinctive:

    Do not extrapolate one day's move into a trend call.

    line 35

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

EOD Snapshot

Post-close (after 3:30 PM IST) portfolio wrap-up. If run before close, state clearly that prices are intraday, not final.

Steps

  1. Pull kite:get_holdings, kite:get_gtts, kite:get_margins for final prices.
  2. Compute: final day P&L (₹ and %), total portfolio P&L, sector-level winners/losers for the day.
  3. Flag positions within 3% of an SL or target trigger — these may fire tomorrow.
  4. Cash % vs 5–10% target; state gap and the standing restoration path if below.
  5. Quick scan of after-market news: results announced post-close for held stocks, US futures direction.
  6. Tomorrow's setup: events on calendar (earnings for held stocks, macro releases, expiry), GTTs likely to trigger at open, and whether the cash position supports any planned deployment.

Output

  1. Day P&L line with timestamp (state "final close" or "intraday as of HH:MM")
  2. Compact table: top 3 gainers/losers of the day with ₹ P&L
  3. Trigger-proximity alerts
  4. Cash status line
  5. Tomorrow's setup: 2–3 sentences

Snapshot write

Write the day's snapshot to portfolio-snapshots/YYYY-MM-DD.json (same schema as session-open Step 4) so tomorrow's runs have a baseline. Also save the full readout as PortfolioReviews/YYYY-MM-DD-eod.md and append a one-paragraph dated entry to progress.md.

Rules

  • Analysis only — no order placement in this skill.
  • If any GTT was cancelled today (check cancellation reasons in GTT objects), flag it prominently: positions may be unprotected overnight.
  • Do not extrapolate one day's move into a trend call.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.