Skip to content
Skills Library
Programming · Building & coding

fix-source

/fix-source

Diagnose and fix an NSE-pasta source that `pasta doctor` reports as not_found, blocked or format_changed - find where NSE moved an endpoint, set it in pasta.toml, or make the parser change with an anonymised fixture and a test. Use when fetches keep failing or doctor is not all ok.

Repository
NSE-pasta ↗
Licence
MIT
Last repository change
28.10.2026

Assessment and security

86/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content21 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 28.10.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Diagnose and fix an NSE-pasta source that `pasta doctor` reports as not_found, blocked or format_changed - find where NSE moved an endpoint, set it in pasta.toml, or make the parser change with an anonymised fixture and a test. Use when fetches keep failing or doctor is not all ok.

Original author description

Diagnose and fix an NSE-pasta source that `pasta doctor` reports as not_found, blocked or format_changed - find where NSE moved an endpoint, set it in pasta.toml, or make the parser change with an anonymised fixture and a test. Use when fetches keep failing or doctor is not all ok.

How it works

SKILL.md has no level-two headings · 22 lines, 212 words

SKILL.md preview
---
name: fix-source
description: Diagnose and fix an NSE-pasta source that `pasta doctor` reports as not_found, blocked or format_changed - find where NSE moved an endpoint, set it in pasta.toml, or make the parser change with an anonymised fixture and a test. Use when fetches keep failing or doctor is not all ok.
---

# Fix a broken source

Reference: `docs/maintaining.md`, `docs/sources.md`.

1. Run `uv run pasta --data D doctor` and note each source that is not `ok`.
2. `blocked`: wait and retry once with a larger `[network] interval` (never below 2 s). Do not
   add headers, rotate user agents or otherwise work around a block: report it.
3. `not_found`: open the matching page on nseindia.com in a browser (the `*_page` URLs in
   `docs/sources.md`), watch the network requests it makes, and find the new endpoint. Set it
   under `[sources]` in `D/pasta.toml`, rerun `doctor`. If the change is permanent, update the
   default in `src/nse_pasta/config.py` and `docs/sources.md`.
4. `format_changed`: save one real answer, trim it (`scripts/trim_fixture.py` for XBRL; keep two
   or three rows of a JSON listing), replace every name, symbol, code and figure with invented
   ones (the repository holds no company's data), add it under `tests/fixtures/`, write the failing test
   first, then change the parser. Never parse by guesswork: an answer in an unknown shape must
   fail loudly (`doctor`) or be excluded with a reason (`out/filings.csv`).
5. screener.in: if its robots.txt no longer allows `/company/<SYMBOL>/`, pasta stops asking by
   design. Do not change that; say so.
6. `uv run pytest` and `uv run ruff format --check . && uv run ruff check .` before proposing
   the change.

Versions

The database has no other skills named fix-source.

Database snapshot: 13.11.2026 · package version d8a733e0681c (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100doctor
    Diagnose and fix common issues. Use for "debug", "fix this", "what's wrong", and "doctor".
  • 100pasta
    This skill should be used when the user asks to "run PASTA analysis", "PASTA threat model", "risk-centric threat analysis", or invokes /appsec:pasta. Dispatches 7 stages SEQUENTIALLY -- each stage's output feeds the next. This is the ONLY framework that runs sequentially.
  • 100check-quarter
    Check one company-quarter in an NSE-pasta data folder against the company's own results announcement (the PDF on NSE) - figures, basis, period and public_at - and say whether pasta's row is right. Use when a row looks wrong (unit_suspect, a crosscheck difference, a growth figure…
  • 100pasta-decompose
    This skill should be used when the user asks to "decompose the application", "map trust boundaries", "identify components and roles", "catalog permissions", or is running PASTA stage 3. Also triggers when the user asks about role-based access control mapping, data…
  • 90pasta
    Run the PASTA (Process for Attack Simulation and Threat Analysis) seven-stage, risk-centric threat model that ties technical threats to business impact. Use for a deeper, attacker-simulation threat model where business risk alignment matters (vs. the faster STRIDE pass).
  • 81fix-and-verify
    Use when Vinny reports a bug. Diagnose, fix, test, prove.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.