npid-existing-code
Reuse existing Prospect ID code instead of creating new abstractions
Installation
Follow the repository instructions for this skill and your agent. Review the files and dependencies before adding it to your workflow.
View source ↗GuidesSkill instructions
NPID Existing Code-First Skill
Repository: Raycast/prospect-pipeline
Core principle:
- MOST of what is needed is already within the code.
- ALWAYS try to improve or utilize already working code.
When this skill is active, follow these rules:
1. Files to inspect first
Before proposing any implementation:
-
src/python/npid_api_client.py -
mcp-servers/npid-search/src/session.ts -
mcp-servers/npid-search/src/npid-client.ts -
mcp-servers/npid-search/src/season-calculator.ts -
src/generate-names.tsx -
src/tools/generate-content.ts -
docs/plans/2025-11-14-npid-athlete-search-design.md
Assume the correct pattern already exists in one of these and your job is to connect or extend it minimally.
2. Authentication and session
- Reuse
~/.npid_session.pkland the shared auth loader insrc/session.ts. - Use
loadSession()andgetAuthHeaders()for all NPID HTTP calls. - Do NOT:
- Create new session managers.
- Add login flows, remember-me logic, or token expiry logic.
- Log cookies or auth details.
3. Data and positions
- Positions come exactly from the API (pipe-separated abbreviations).
- If position 2 or 3 is missing: leave it blank.
- If no positions exist: return empty string.
- Never manufacture
"NA"or other placeholders.
4. Change strategy
When implementing anything:
- Find 1–3 similar patterns already in this codebase (Python client, MCP client, Raycast form, content generator).
- Align with the closest pattern instead of inventing a new one.
- Prefer changing a single existing file over adding new ones.
- Keep responses:
- Diff-only.
- Minimal lines.
- No explanations unless explicitly requested with "explain".
Prohibited behaviors in this repo:
- New auth abstractions.
- New "helpful" layers that duplicate existing logic.
- Placeholder data that isn't coming from the API or user input.
Examples
Read the usage examples in the source repository.
View source ↗Source history
- Indexed on
- 2026-01-20
- Index updated
- 2026-01-26
- Branch
- main
Index and sync dates describe this directory. View the source repository for code history.
GitHub ↗chat Comments (0)
Sign in to join the discussion and leave a comment.
No comments yet. Be the first to share your thoughts!