Skip to content

Instantly share code, notes, and snippets.

View xcollantes's full-sized avatar
:octocat:
Unbridled enthusiasm

Xavier Collantes xcollantes

:octocat:
Unbridled enthusiasm
View GitHub Profile
---
name: stock-driver-analysis
description: Use when analyzing why a stock is moving. Given a ticker symbol, identifies news, earnings, analyst actions, and market conditions from the last few minutes to the last day, with recency verification for every source.
---
# Stock Movement Drivers
Analyze the factors behind a stock's recent price movement using free web data sources. Prioritizes **real-time and same-day data**, no API key required.
## Overview
@xcollantes
xcollantes / improve.md
Last active July 11, 2026 05:13
Fable 5 prompt improvement.

You are a principal engineer and need to improve and audit the library of prompts, workflows, and skills.

Upgrade and produce the existing prompt files, make sure to include a 1-2 sentence on the improvement it buys. Build in decision-making guidance and worked examples rather than bare directives. My voice and style rules carry over untouched.

Do not change the procedures or specifics such as URLs, explicit instructions, or lines without substitutes.

Improve the prompts in a way lower models cannot. Change prompts to produce better output.

  • Duplication (the same fact living in more than one place, which my canon rule forbids)
  • Simplicity: Reduce complexity where the instructions are too complicated and can achive the same or better result in a simplier fashion
@xcollantes
xcollantes / stock_driver_skill.md
Created May 15, 2026 04:39
Stonks Driver Skill for LLM harness.
name stock-drivers
description Use when analyzing why a stock is moving. Given a ticker symbol, identifies news, earnings, analyst actions, and market conditions from the last few minutes to the last day, with recency verification for every source.
version 0.0.5
author Xavier Collantes
license MIT
platforms
linux
macos
windows
tags
finance
stocks
equities
market-analysis
research
@xcollantes
xcollantes / .pre-commit-config.yaml
Last active February 22, 2026 00:22
.pre-commit.yaml config
# See https://pre-commit.com for more information.
# Filename: Must be named .pre-commit-config.yaml
# Install pre-commit file with: `pre-commit install`
repos:
# Must have `pip install ruff pre-commit` installed.
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.9.2
hooks:
# Run the linter.
@xcollantes
xcollantes / pyproject.toml
Created January 11, 2026 23:02
UV pyproject.toml personal settings.
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = ""
version = "0.1.0"
description = ""
readme = "README.md"
requires-python = ">=3.12"
@xcollantes
xcollantes / intraday_hourly.ipynb
Created January 4, 2026 07:03
Intra-day hourly trend analysis: GOOGL
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@xcollantes
xcollantes / CLAUDE.md
Created August 10, 2025 04:46
Example Python CLAUDE.md

CLAUDE.md

This file provides comprehensive guidance to Claude Code when working with Python code in this repository.

🧱 Code Structure & Modularity

PEP 8

Follow the PEP 8 style guide.

@xcollantes
xcollantes / main.py
Created July 15, 2025 04:07
test script
def main():
print("hello world")
@xcollantes
xcollantes / watchlist.csv
Created July 9, 2024 20:48
Universal stock watchlist.
NVDA
SOXL
MSFT
GOOG
QQQ
TQQQ
CRWD
NET
NVDL
NET
@xcollantes
xcollantes / example_logging.py
Created July 2, 2024 04:21
Snippet for Python logging to file and terminal.
import logging as log
logging = log.getLogger(__name__)
logging.setLevel(log.INFO)
formatter = log.Formatter(
"%(asctime)s[%(levelname)s][%(filename)s][ln:%(lineno)s] %(message)s",
datefmt="[%a %Y-%m-%d %H:%M:%S %Z]",
)
file_handler = log.FileHandler("logs/app.log", "a")