npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

nepse-trading-skill

v1.0.3

Published

18 AI agent skills for analysing and trading the Nepal Stock Exchange (NEPSE): daily analysis, market regime, breadth, news sentiment, sectors, momentum screen, position sizing, costs and tax, pre-trade gate. For Claude Code, Codex, Gemini CLI and other A

Readme

nepse-trading-skill: NEPSE trading skills for AI agents

Eighteen ready-made skills that teach Claude Code, Codex, Gemini CLI and other AI coding agents how to analyse and trade the Nepal Stock Exchange (NEPSE). Ask in plain words ("which share should I watch today?", "analyse NABIL", "how many kitta can I buy with Rs 30,000?") and the agent runs the right calculation on live NEPSE data, then explains the result.

Install

Run one command in your terminal:

npx nepse-trading-skill

It installs all eighteen skills for every supported agent. Restart the agent and start asking.

Or ask your agent to install it. Paste this into the chat of Claude Code, Codex or Gemini CLI, and the agent runs the install itself:

Install the NEPSE trading skills from npm for me.

1. Check that python3 is version 3.9 or newer and that npx is available. If either is missing, stop and tell me what to install.
2. Run: npx --yes nepse-trading-skill@latest
3. Confirm the install worked: list the nepse-* folders in ~/.claude/skills and ~/.agents/skills (there should be 18 in each), then run
   python3 ~/.agents/skills/nepse-cost-tax-calculator/scripts/cost_calculator.py breakeven --price 450 --qty 1000
   and show me the result line.
4. Tell me to restart this agent so it loads the new skills.

Do not change any other files or settings.

After the restart, start with:

Run today's NEPSE analysis for Rs 30,000 using the nepse-daily-analyst skill.
  • The agent asks before running npx, because it downloads and runs code. Approve it.
  • Codex's default sandbox blocks network access and writes outside the project. Approve the escalation when it asks.
  • This works in the terminal agents (Claude Code, Codex CLI, Gemini CLI), which can run commands on your computer. The web chats (claude.ai, ChatGPT, gemini.google.com) cannot install local skills.

What you get

  • A full daily analysis in one command: market regime and exposure ceiling, market breadth, news and sentiment, sector rotation, a momentum screen, and for each candidate its trigger price, stop, target and size for your own capital, plus when to buy and when to sell.
  • NEPSE's real rules built in: 15% daily price limit, index circuit breakers at 5% and 8%, T+2 settlement, lots of 10 kitta, no short selling, Monday to Friday trading since April 2026.
  • Real costs in every number: broker commission slabs, SEBON fee, DP charge and capital gains tax (5% up to 365 days, 3.75% after), so every profit, target and break-even is net.
  • Risk control: a position sizer that respects liquidity and concentration, and a pre-trade gate that returns PASS, WARN or BLOCK before you place an order in TMS.
  • Research helpers: technical snapshot, valuation from quarterly reports (banks, hydropower, insurance), dividend and book-closure screen, bonus and right share calculator, IPO calendar, liquidity and NRB policy checklist, portfolio review with a tax clock, and a trade journal that scores your results in R.
  • No API key, no paid data. Python 3.9+ standard library only, using public NEPSE data feeds (Merolagani, ShareHub) and news from ShareSansar, Kathmandu Post and OnlineKhabar.

Supported agents

| Agent | Where the skills are linked | |---|---| | Claude Code | ~/.claude/skills | | OpenAI Codex CLI | ~/.agents/skills | | Google Gemini CLI | ~/.agents/skills | | Other Agent Skills clients (Cursor, GitHub Copilot, OpenCode and others) | ~/.agents/skills or ~/.claude/skills, depending on the client |

Requires macOS or Linux and Python 3.9 or newer. npx nepse-trading-skill copies the package to ~/.nepse-skills and links each skill into the folders above. Run it again to update. npx nepse-trading-skill --uninstall removes the links and keeps ~/.nepse-skills/state (your journal and holdings).

Example questions

  • "Run today's NEPSE analysis for Rs 30,000"
  • "Is NEPSE in an uptrend? How much should I be invested?"
  • "Which sectors are leading?"
  • "Find breakout candidates in hydropower"
  • "Analyse NTC. I bought 30 kitta at 943.90: when should I sell?"
  • "I bought 1,000 at 450 and want to sell at 560 after 200 days. Net profit after tax?"
  • "What will the price be after a 15% bonus?"
  • "Which IPOs are open?"
  • "Review my portfolio" (paste your MeroShare holdings)

Educational analysis, not investment advice. Data is unofficial and can be delayed or wrong. Rules and tax rates were verified on 13 November 2026 and change often: confirm with your broker, NEPSE or SEBON before trading. The agent never places orders; you trade in TMS.

Modelled on tradermonty/claude-trading-skills (same layout: SKILL.md, references/, scripts/, JSON and Markdown reports), rebuilt for NEPSE.

Skills

Start here

| Skill | What it does | Script | |---|---|---| | nepse-daily-analyst | One command: market, news sentiment, sectors, candidates sized for your capital, trigger status, when to buy and when to sell | daily_analysis.py |

Market rules and money

| Skill | What it does | Script | |---|---|---| | nepse-market-rules | Trading days and sessions, 15% limit, index breakers, order bands, settlement, lots, new-listing ranges; today's price bands | price_bands.py | | nepse-cost-tax-calculator | Commission slabs, SEBON fee, DP charge, capital gains tax; buy cost, sell proceeds, round trip, break-even | cost_calculator.py | | nepse-corporate-actions-calculator | Adjusted price, new quantity, tax and cost after bonus, right or cash dividend | corporate_actions.py |

Market direction

| Skill | What it does | Script | |---|---|---| | nepse-market-regime-detector | Index regime from trend, distribution days and follow-through days; exposure ceiling | market_regime.py | | nepse-market-breadth-analyzer | 0-100 participation score from the live tape; share of stocks above their averages | breadth.py | | nepse-sector-analyst | Ranks the 13 sub-indices by strength against NEPSE; rotation phase | sector_rotation.py | | nepse-news-sentiment-analyst | Headlines and NEPSE notices scored, plus tape mood; market and per-stock news verdict | news_sentiment.py | | nepse-liquidity-macro-monitor | Interest rates, system liquidity, NRB policy, share-loan rules; tailwind or headwind scorecard | research workflow, no script |

Stock selection

| Skill | What it does | Script | |---|---|---| | nepse-momentum-screener | Stage 2 leaders in tight bases: trend template, RS rank, tightness, volume dry-up, pivot | screen_momentum.py | | nepse-technical-analyst | Trend stage, averages, RSI, MACD, ATR, levels; scenario-based analysis | technical_snapshot.py | | nepse-fundamental-analyst | PE, PBV, ROE, earnings yield, Graham number; bank, hydropower, insurance checklists | valuation.py | | nepse-dividend-screener | Cash yield on price, bonus habit, consistency, next book closure | dividend_screener.py | | nepse-ipo-analyzer | Open and upcoming offerings; application, allotment, listing range, listing-day plan | ipo_calendar.py |

Risk and review

| Skill | What it does | Script | |---|---|---| | nepse-position-sizer | Kitta to buy from risk, stop, charges, liquidity and concentration limits; ATR and half-Kelly modes | position_sizer.py | | nepse-pre-trade-gate | PASS / WARN / BLOCK on a planned buy: risk, size, reward, liquidity, chasing, regime, book closure | pre_trade_gate.py | | nepse-portfolio-manager | Holdings CSV to net value, concentration, losers, tax clock | portfolio_review.py | | nepse-trade-journal | Plan at entry, result at exit in R after charges and tax, statistics by setup | journal.py |

Getting started

  1. Install (macOS or Linux, Python 3.9 or newer):

    npx nepse-trading-skill
  2. Restart your agent (Claude Code, Codex, Gemini CLI). It loads the nepse-* skills on start. To check, ask "which NEPSE skills do you have?", or in Gemini CLI run gemini skills list.

  3. Ask a question in plain words. The agent picks the skill, runs its script and explains the result. Start with:

    Run today's NEPSE analysis for Rs 50,000

  4. Read the stance line first. Every analysis opens with either "No trade today" or the stocks at their trigger price, then the cautions. Then come the plan (quantity, stop, target) and the timing rules: when to buy and when to sell.

You can also run any script yourself. Every script prints Markdown, takes --help, and with --output-dir reports/ saves a timestamped .json and .md in the folder you run it from:

python3 ~/.nepse-skills/skills/nepse-daily-analyst/scripts/daily_analysis.py --account-size 50000 --output-dir reports/

Best times to run

| When (Nepal time) | What to run | Why | |---|---|---| | After 11:30 | Daily analysis | Enough trades for breadth and sentiment to mean something | | About 14:45 | Daily analysis again, or the pre-trade gate | Confirm a breakout before the 15:00 close | | After 15:00 | Daily analysis | Complete daily bar; plan for the next session | | Weekend | Sector ranking, technical and fundamental work, portfolio review | No live tape; prices are Friday's close |

Skill reference

Each skill below shows what it does, what to ask, the command the agent runs, and what comes back. Paths start at ~/.nepse-skills/skills/.

nepse-daily-analyst: start here

The whole analysis in one command: market regime and exposure ceiling, breadth, news and sentiment, sector ranking, momentum screen, and for each candidate its trigger status, gate verdict, quantity for your capital, stop and 2R target. It ends with the rules for when to buy and when to sell.

  • Ask: "Run today's NEPSE analysis for Rs 30,000", "What should I watch today?", "Include NTC and NABIL"
  • Run: nepse-daily-analyst/scripts/daily_analysis.py --account-size 30000 --risk-pct 1.5 --max-position-pct 50 --symbols NTC NABIL
  • Options: --account-size (required, rupees), --top (universe, default 100), --candidates (default 8), --symbols (always include), --risk-pct (default 1), --max-position-pct (default 20)
  • You get: a stance line, market table, headlines, sector table, candidate table and timing rules
  • Trigger status: BUILDING (more than 3% below the trigger), NEAR (within 3%), TRIGGERED (above it with volume on pace), TRIGGERED, LOW VOLUME, CONFIRMED (closed above on 1.5× volume), WEAK BREAKOUT, EXTENDED (more than 3% above; the entry is missed)
  • Small accounts: under about Rs 100,000 the defaults give zero kitta for most stocks. Use --risk-pct 1.5 --max-position-pct 50 and expect a break-even of 1.3% to 2% per trade.

nepse-market-rules

NEPSE's trading rules as of November 2026, and today's price bands for a stock or the index.

  • Ask: "Is NEPSE open now?", "Where is NABIL's upper circuit today?", "When does the market halt?"
  • Run: nepse-market-rules/scripts/price_bands.py --symbol NABIL, or --prev-close 549 --open 550 --ltp 560, or --index-prev-close 2655
  • You get: the session by the clock, the pre-open band (±5%), the queued-order band (±15%), the daily limit (±15%), the next order band (±3%), room left to each limit, and the index levels that halt trading (5% for 15 minutes before 13:00; 8% closes the day)
  • Covers: Monday to Friday trading, 10:30 pre-open, 11:00 to 15:00 trading, T+2 settlement, lots of 10 kitta, no stop or market orders, no short selling, the new-listing opening range

nepse-cost-tax-calculator

Exact rupee costs of a trade: commission (0.36% to 0.24% by slab, minimum Rs 10), SEBON fee (0.015%), DP charge (Rs 25 per side) and capital gains tax (5% held 365 days or less, 3.75% after, for individuals).

  • Ask: "What do I pay for 100 NABIL at 550?", "Net profit if I sell 1,000 at 560 after 200 days?", "What is my break-even?"
  • Run: nepse-cost-tax-calculator/scripts/cost_calculator.py buy --price 500 --qty 100
  • Modes: buy, sell --cost-per-share 451.58 --holding-days 200, roundtrip --price 450 --sell-price 560 --qty 1000 --holding-days 200, breakeven --price 450 --qty 1000
  • You get: every charge line, total payable or net receivable, tax, net profit, net and gross return
  • Example: 100 shares at Rs 500 costs Rs 50,212.50 in total. Buying 1,000 at Rs 450 needs a sale at Rs 453.20 or more to break even.

nepse-corporate-actions-calculator

The effect of a bonus share, right share or cash dividend on price, quantity, average cost and tax.

  • Ask: "What will the price be after a 15% bonus?", "Should I apply for the 1:1 right?", "How much tax on my bonus?"
  • Run: nepse-corporate-actions-calculator/scripts/corporate_actions.py --price 550 --qty 500 --wacc 480 --bonus-pct 10 --cash-pct 0.5263
  • Options: --price, --qty (required), --wacc, --bonus-pct, --cash-pct, --right-pct (new shares per 100 held: 1:0.5 is 50), --right-price (default 100)
  • You get: the adjusted price after book closure, bonus and right shares, the money a right needs, 5% tax, any tax you must pay the company, and your new average cost

nepse-market-regime-detector

Is the market in an uptrend, correcting or bottoming? It reads the trend, distribution days and follow-through days and turns them into one number: how much of normal buying to allow.

  • Ask: "Is NEPSE bullish?", "Has the market bottomed?", "How much should I be invested?"
  • Run: nepse-market-regime-detector/scripts/market_regime.py, or --index Banking (or Hydropower, Microfinance and the other sub-indices)
  • You get: a regime name and an exposure ceiling from 0% to 100%, the moving averages, distance from the high, distribution days in the last 25 sessions, and the date of the latest follow-through day
  • Ceilings: 100% in a confirmed uptrend, 60% under pressure or in recovery, 40% in a pullback, 50% after a follow-through day, 20% in a rally attempt, 0% in a downtrend

nepse-market-breadth-analyzer

How many stocks are taking part in the move. Scored 0 to 100 from advancers and decliners, turnover in rising stocks, the median move, sector participation and turnover concentration.

  • Ask: "How broad is today's rally?", "Is the index being held up by a few stocks?"
  • Run: nepse-market-breadth-analyzer/scripts/breadth.py, or --deep to add the share of stocks above their 20, 50 and 200-day averages (about a minute)
  • You get: a score and zone (Strong 70+, Healthy 55+, Neutral 40+, Weak 25+, Washed out), the component scores and a sector table

nepse-sector-analyst

Ranks NEPSE's 13 sector indices by strength against the NEPSE index over 1 week, 1 month, 3 months and 6 months.

  • Ask: "Which sectors are leading?", "Banks or hydropower?"
  • Run: nepse-sector-analyst/scripts/sector_rotation.py
  • You get: a ranked table, each sector's phase (Leading, Improving, Weakening, Lagging), and its position against its 50-day and 200-day averages

nepse-news-sentiment-analyst

Market and company news with a sentiment reading. Headlines come from ShareSansar, the Kathmandu Post (business) and OnlineKhabar (economy); company notices come from NEPSE.

  • Ask: "What is the market sentiment?", "Any news on SAHAS?", "Why is NEPSE falling today?"
  • Run: nepse-news-sentiment-analyst/scripts/news_sentiment.py --days 3, or --symbol SAHAS --days 30
  • You get: a combined score from −100 to +100 (news and tape mood), the headlines with their scores, and for a stock its news plus NEPSE notices from the last 90 days
  • Note: the score comes from a word list. The skill tells the agent to read the headlines and correct it.

nepse-liquidity-macro-monitor

A research checklist for the money behind the market: interbank and deposit rates, credit, NRB policy, share-loan rules, remittance, reserves, inflation and the budget. There is no script; the agent searches for current figures and fills a 10-line scorecard.

  • Ask: "Why is the market rising?", "How does NRB policy affect shares?", "What is the macro outlook for NEPSE?"
  • You get: tailwind, neutral or headwind, with a dated scorecard, where the market is in the liquidity cycle, sector effects and the events in the next 30 days

nepse-momentum-screener

Finds stocks in strong uptrends resting near their highs: the setup that comes before most big moves.

  • Ask: "Find breakout candidates", "Strongest stocks in hydropower", "Screen NABIL NBL GBIME"
  • Run: nepse-momentum-screener/scripts/screen_momentum.py --top 100, --sector "Hydro Power", or --symbols NABIL NBL GBIME
  • Options: --min-template (checks needed out of 7, default 6), --min-turnover (default Rs 2,000,000 a day), --limit
  • You get: score, trend-template result, relative-strength rank, 10-day range, volume dry-up, pivot (trigger) and distance to it

nepse-technical-analyst

A numbers-first chart read of one stock, the NEPSE index or a sector index.

  • Ask: "Analyse NABIL technically", "Support and resistance for NTC", "Is GBIME in an uptrend?"
  • Run: nepse-technical-analyst/scripts/technical_snapshot.py --symbol NABIL (also --symbol NEPSE, --symbol Banking)
  • You get: trend stage, the 20, 50, 150 and 200-day averages, RSI, MACD, ATR, 52-week range, returns, volume against average, 10-day range, support and resistance; the agent adds scenarios with entry, stop and target

nepse-fundamental-analyst

Valuation and quality checks from a company's quarterly report.

  • Ask: "Is NABIL overvalued?", "Analyse Global IME Bank's Q1 results", "Compare two hydropower companies"
  • Run: nepse-fundamental-analyst/scripts/valuation.py --symbol NABIL --eps 30.34 --bvps 233.9 --sector bank --npl-pct 4.1 --car-pct 12.6 --dividend-pct 10.8 --deposit-rate 4
  • Options: --eps and --bvps are required (no free feed has them; the agent reads them from the report); --sector is one of bank, devbank, finance, microfinance, life, nonlife, hydro, manufacturing, hotel, investment, other
  • You get: PE, PBV, ROE, earnings yield against the deposit rate, Graham number, PEG and cash yield, plus positives, flags and a verdict

nepse-dividend-screener

Dividend record turned into yield on today's price.

  • Ask: "Best dividend banks", "When is NMB's book closure?", "Income stocks paying 4% or more"
  • Run: nepse-dividend-screener/scripts/dividend_screener.py --sector "Commercial Banks" --top 20, or --symbols NABIL HBL NMB
  • Options: --min-years (years paid out of 5), --min-cash-yield
  • You get: latest cash and bonus percentages, cash yield and net yield after 5% tax, 5-year averages, years paid and the next book-closure date

nepse-ipo-analyzer

Public offerings now open, coming up, and closed but not yet listed. It also explains applying, allotment, the listing range and selling at listing.

  • Ask: "Which IPOs are open?", "Should I apply for this IPO?", "When should I sell my IPO shares?"
  • Run: nepse-ipo-analyzer/scripts/ipo_calendar.py, or --type Ipo (other types include MutualFund and BondOrDebenture)
  • You get: each offering's units, price, dates, issue manager, and who may apply (general public, local people, migrant workers)

nepse-position-sizer

How many kitta to buy so that a stop-out costs a set share of your account, after charges and within liquidity and concentration limits.

  • Ask: "How many SAHAS can I buy with Rs 10 lakh and a stop at 680?"
  • Run: nepse-position-sizer/scripts/position_sizer.py --account-size 1000000 --entry 548 --stop 528, or --symbol NABIL --atr-multiplier 2.5 for an ATR stop
  • Options: --risk-pct (default 1), --max-position-pct (default 20), --max-sector-pct, --current-sector-exposure, --lot (default 10), --max-adv-pct (default 10% of average volume), Kelly with --win-rate --avg-win --avg-loss
  • You get: kitta (whole lots), which limit set the size, total payable and the loss if stopped

nepse-pre-trade-gate

A PASS, WARN or BLOCK checklist on a planned buy, run just before you place the order in TMS.

  • Ask: "I am about to buy 300 NABIL at 548 with a stop at 528. Check it."
  • Run: nepse-pre-trade-gate/scripts/pre_trade_gate.py --symbol NABIL --account-size 1000000 --qty 300 --stop 528 --target 600
  • Checks: risk per trade, position size, reward to risk after charges and tax, liquidity, stop distance, chasing, room to the upper limit, extension, market regime and upcoming book closure
  • You get: one verdict and a line per check. The command exits with code 2 on BLOCK.

nepse-portfolio-manager

A review of your holdings: value, net profit if sold today, concentration, losers that need a decision, and days left to the lower tax rate.

  • Ask: "Review my portfolio" (paste your MeroShare table)
  • Run: nepse-portfolio-manager/scripts/portfolio_review.py --holdings state/holdings.csv
  • Input CSV: symbol,quantity,wacc,buy_date (buy_date as YYYY-MM-DD, optional; one row per lot)
  • You get: totals, a holdings table, sector weights and alerts (positions over 20%, sectors over 40%, losers past −15%, tax savings within 45 days)

nepse-trade-journal

Records each trade's plan at entry and its result at exit, then scores you in R (multiples of the planned risk) after charges and tax.

  • Ask: "Log my NTC buy: 30 at 943.90, stop 913.7, breakout", "Show my trading stats"
  • Run: nepse-trade-journal/scripts/journal.py open --symbol NTC --qty 30 --entry 943.9 --stop 913.7 --target 1035 --setup breakout --thesis "...", then close --id 1 --exit 1000 --reason target, list, stats
  • You get: win rate, expectancy in R, profit factor, average holding days, tax paid and results by setup
  • Stored in: ~/.nepse-skills/state/journal.json, on your machine only

Install for Claude Code, Codex, Gemini CLI and others

The skills follow the open Agent Skills format (a folder with a SKILL.md). One script links them where each agent looks:

| Agent | Reads skills from | |---|---| | Claude Code | ~/.claude/skills | | Codex CLI | ~/.agents/skills | | Gemini CLI | ~/.agents/skills | | Other Agent Skills clients (Cursor, GitHub Copilot, OpenCode and others) | ~/.agents/skills or ~/.claude/skills, depending on the client |

From npm (no clone needed):

npx nepse-trading-skill

This copies the skills to ~/.nepse-skills and links each one into ~/.claude/skills and ~/.agents/skills. Run it again to update; npx nepse-trading-skill --uninstall removes the links and keeps ~/.nepse-skills/state (your journal and holdings).

From git:

git clone https://gitlab.com/xetu/nepse.git ~/nepse-skills
~/nepse-skills/install.sh

The script links ~/.nepse-skills to the clone and links each nepse-* skill folder into ~/.claude/skills and ~/.agents/skills. Restart the agent. Update with git pull in the clone; remove with ~/nepse-skills/install.sh --uninstall.

Do not install single skills with an agent's own installer (for example gemini skills install --path skills/nepse-...): the scripts import nepse_common/ from the repository root and every SKILL.md runs them from ~/.nepse-skills, so a lone copied folder cannot run.

Inside this repository the skills also load as project skills (.claude/skills and .agents/skills link to skills/), and AGENTS.md (read by Codex; CLAUDE.md and GEMINI.md point to it) holds the working rules. Run ./install.sh once here too: the commands use ~/.nepse-skills.

Updating and removing

| Task | Command | |---|---| | Update to the latest version | npx nepse-trading-skill@latest | | Remove the skills | npx nepse-trading-skill --uninstall | | Remove everything, including your journal | Run the uninstall, then delete ~/.nepse-skills |

Updating replaces the skills and shared code and keeps ~/.nepse-skills/state and ~/.nepse-skills/.cache.

Troubleshooting

| Problem | Fix | |---|---| | The agent does not list the skills | Restart it. Check that ~/.claude/skills/nepse-daily-analyst (Claude Code) or ~/.agents/skills/nepse-daily-analyst (Codex, Gemini) exists. Run the installer again. | | "skipped …: a folder with that name already exists" | A real folder with that name is in the way. Move it, then reinstall. | | ~/.nepse-skills exists and is not a link | You installed from npm before and now install from git. Move ~/.nepse-skills away (keep its state/), then run install.sh. | | python3 3.9 or newer is required | Install Python 3.9+ (python.org or Homebrew). | | "did not trade today" or "no price history" | The stock had no trade yet today, or the symbol is wrong. Check the symbol on ShareSansar or Merolagani. | | "fetch failed" | A public data feed is down or has changed. Try again later. Feed addresses live in nepse_common/data.py. | | Numbers look a day old | The market is closed (weekend or holiday). Scripts use the last session. | | Windows | Not supported by the installer. Use WSL. |

FAQ

Is this investment advice? No. The skills turn public data and fixed rules into numbers and plans. They do not know your situation, and the agent does not place orders. You decide and you trade in TMS.

Does it need an API key or a paid data plan? No. It uses free public feeds. They are unofficial and can be late, wrong or stop working.

Does any of my data leave my computer? Your holdings and journal stay in ~/.nepse-skills/state. The scripts only download public market data and news. Your agent (Claude, Codex, Gemini) sees what you type and what the scripts print, as with any other prompt.

How current are the rules and tax rates? They were checked on 13 November 2026. NEPSE, SEBON and the Finance Ministry change them often; items that could not be confirmed are marked in the references. Check before a decision that depends on one number.

Can I use it without an AI agent? Yes. Every script runs on its own with python3 and prints Markdown. See --help.

Why does a small account get zero kitta? The default limits are 1% risk and 20% per position. With lots of 10 kitta, a Rs 30,000 account often cannot buy one lot inside them. Raise the limits on purpose (--risk-pct 1.5 --max-position-pct 50) and accept the higher concentration.

Workflows

Defined in workflows/README.md:

| Workflow | When | Skills in order | |---|---|---| | Market regime daily | Each trading day, 10 minutes | regime → breadth → sector → news sentiment | | Swing opportunity | When the regime allows buying | regime → sector → momentum screen → technical → fundamental check → stock news → position sizer → pre-trade gate → journal | | Dividend income | Dividend season, monthly | liquidity → dividend screen → fundamental → corporate actions → cost and tax | | IPO | When an offering opens or lists | IPO calendar → fundamental → rules (opening range) → cost and tax → journal | | Portfolio review | Monthly | liquidity → regime → portfolio → technical on each holding → journal statistics |

Data sources

| Data | Source | Notes | |---|---|---| | Adjusted daily OHLCV for stocks, NEPSE and sub-indices | Merolagani chart handler | Since November 2010; adjusted for bonus and right | | Live prices with sector, market summary, sub-indices | ShareHub live API | Updates through the session | | Dividend history, public offerings, NEPSE company notices | ShareHub data API | | | News headlines | ShareSansar latest, Kathmandu Post RSS, OnlineKhabar RSS | Latest 10 to 40 items each | | Fundamentals | None free | Read from quarterly reports and pass to valuation.py | | Floorsheet / broker-wise trades | None keyless found | Not covered |

Both feeds are unofficial and can change or stop without notice; nepse_common/data.py is the only file that knows their URLs. Responses are cached in .cache/ (15 minutes for prices). The official nepalstock.com.np API needs a reverse-engineered token and is not used. For commercial use of NEPSE data, get a licence from NEPSE.

What was verified, and what was not

Verified against 2026 press reports on 13 November 2026:

  • Trading Monday to Friday since 6 April 2026; 11:00 to 15:00; pre-open 10:30 to 10:45
  • 15% daily stock limit, 5% pre-open band, 3% order band, index breakers at 5% (15-minute halt, first two hours) and 8% (closed for the day), since 20 April 2026
  • Capital gains tax for individuals: 3.75% over 365 days, 5% otherwise, since 22 September 2026
  • Commission slabs 0.36% to 0.24%, SEBON fee 0.015%, DP charge Rs 25
  • New-listing opening range moved to a face-value basis in February 2026 (disputed)

Not confirmed from a primary source, marked in the references: the institutional capital gains tax rate (10% used), whether the 10-kitta lot floor still applies at every broker, the exact reference price of the 15% limit, bonus-share cost basis for 2026, current NRB share-loan limits after the 2083/84 monetary policy, and whether intraday trading or T+1 has started. Sector descriptions, valuation bands and regulatory thresholds in the fundamental references are general knowledge and are flagged as such.

When a rule changes, update ~/.nepse-skills/skills/nepse-market-rules/references/trading_rules.md, the constants in nepse_common/costs.py and ~/.nepse-skills/skills/nepse-market-rules/scripts/price_bands.py, then run the tests.

Layout

nepse_common/        shared code: data.py, indicators.py, costs.py, report.py
skills/<name>/       SKILL.md, references/, scripts/ (and assets/ where used)
workflows/           multi-skill workflows
tests/               offline tests for every money and decision calculation
.claude/skills       link to skills/ (Claude Code project skills)
.agents/skills       link to skills/ (Codex, Gemini CLI project skills)
install.sh           links the skills into ~/.claude/skills and ~/.agents/skills
AGENTS.md            working rules; CLAUDE.md and GEMINI.md point to it
reports/ state/ .cache/   created at run time, git-ignored

Tests

python3 -m pytest tests -q

34 offline tests cover commission slabs, tax, break-even, indicators, position sizing, price bands, corporate actions, regime classification, the trend template, breadth scoring, dividend summaries, offering grouping, valuation flags, portfolio review, the journal, the gate, news scoring and parsing, and the daily analyst's trigger status and trade plan.

Differences from the upstream US repository

| Upstream | Here | Why | |---|---|---| | 74 skills | 18 | Options, futures, COT, short-selling, earnings-gap, 13F and US macro skills have no NEPSE counterpart; several upstream skills are merged (three market-direction skills into one regime detector; journal, post-mortem and coach into one journal) | | FMP / FINVIZ / Alpaca APIs | Keyless public feeds | No NEPSE data vendor or broker API for retail | | Fractional shares, bracket orders | Whole kitta, limit orders, manual stops | TMS has no stop or bracket orders | | Earnings calendar | Dividend and book-closure dates | Quarterly results have no reliable free calendar feed | | US tax lots | NEPSE charges and capital gains tax in every result | Costs are about 0.7% a round trip plus tax on the gain |