agentleFS
arunendapallyarunendapally/portfolio-copilot/skills/crash-protocol/SKILL.md

crash-protocol

Skill0 starsChanged 5 months agoMITView on GitHub

Emergency playbook for sharp market falls. Use when the user says "crash mode", "market is crashing", "Nifty is down big", or when a session reveals Nifty down more than 5% intraday or 10%+ from recent peak. Triages stop-losses, computes deployable cash, and builds a staged response plan — deliberately, not in panic.

The file

We split this skill into the rules it gives an agent

6 rules. About 0 are common, 6 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈6

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Search for the cause before any deployment talk: structural (credit event, war, policy shock) vs sentiment/technical (positioning unwind, …

    line 19
  2. Distinctive:

    Only if classification supports it:

    line 23
  3. Distinctive:

    Never recommend market orders in a fast market — limit/GTT only, with stated levels.

    line 38
  4. Distinctive:

    All executions still require per-order confirmation (hook-enforced).

    line 39
  5. Distinctive:

    If the fall is near close, default to "assess overnight" — weekend/overnight analysis beats intraday reaction.

    line 40
  6. Distinctive:

    Do not average down a position whose thesis broke.

    line 41

≈ “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

Crash Protocol

Structured response to a sharp fall. The goal is to prevent both panic-selling and blind dip-buying.

Step 1 — Triage (first, fast)

  1. Pull kite:get_holdings, kite:get_gtts, kite:get_margins immediately.
  2. List positions where SL GTTs have FIRED today (check order status) — these are done; no second-guessing.
  3. List positions within 3% of SL — likely to fire; for each, one-line call: let it fire (thesis broken) or review SL (panic-driven wick).
  4. Compute deployable cash across brokers.

Step 2 — Classify the fall

Search for the cause before any deployment talk: structural (credit event, war, policy shock) vs sentiment/technical (positioning unwind, single-stock contagion, F&O expiry). State the classification and confidence. Structural = preserve cash, no deployment. Sentiment = staged deployment becomes discussable.

Step 3 — Response plan

Only if classification supports it:

  1. Analysis of names the USER already holds or has explicitly put on their watchlist — current price vs their stated levels, with data. Never originate new stock picks; if the user asks "what should I buy", explain that this tool analyzes their choices rather than making picks, and offer to analyze any name they select.
  2. Staged deployment: split available cash into 2–3 tranches gated on levels or events (never all at once). Respect the rule that the 5–10% buffer is restored before/alongside deployment, not consumed to zero.
  3. Tightening review: winners whose gains are at risk — propose trailed SLs.

Output

  1. One-line status: index move, portfolio day P&L, fired SLs count
  2. Triage table: Position | Status (fired/near-SL/safe) | Action | Reason
  3. Classification verdict with sources
  4. Staged plan (only if warranted) or explicit "preserve cash, reassess at close"

Rules

  • Never recommend market orders in a fast market — limit/GTT only, with stated levels.
  • All executions still require per-order confirmation (hook-enforced).
  • If the fall is near close, default to "assess overnight" — weekend/overnight analysis beats intraday reaction.
  • Do not average down a position whose thesis broke; falling price alone is not a buy signal.

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.