Skip to content

RKiding/Awesome-finance-skills / skills/alphaear-stock

alphaear-stock

Verified

Search A-Share/HK/US finance stock tickers and retrieve finance stock price history. Use when user asks about finance stock codes, recent price changes, or specific company finance stock info.

FileKindSize
SKILL.mdskill md1.5 KB
scripts/__init__.pyscript0 B
scripts/database_manager.pyscript4.1 KB
scripts/stock_tools.pyscript19.4 KB
tests/test_stock.pyscript634 B

tests/test_stock.py

View on GitHub
import sys
import os
import unittest

# Add skill root to path
sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))

try:
    from scripts.stock_tools import StockTools
    from scripts.database_manager import DatabaseManager
except ImportError as e:
    print(f"Import Error: {e}")
    sys.exit(1)

class TestStock(unittest.TestCase):
    def test_init(self):
        print("Testing StockTools Iteration...")
        db = DatabaseManager(":memory:")
        tools = StockTools(db)
        self.assertIsNotNone(tools)
        print("StockTools Initialized.")

if __name__ == '__main__':
    unittest.main()
receiving-code-reviewobra/superpowersUse when receiving code review feedback, before implementing suggestions, especially if feedback seems unclear or technically questionable - requires technical rigor and verification, not performative agreement or blind implementationStars: 323kUpdated Claude CodeCodexVerifiedInstall
requesting-code-reviewobra/superpowersUse when completing tasks, implementing major features, or before merging to verify work meets requirementsStars: 323kUpdated Claude CodeCodexVerifiedInstall
using-git-worktreesobra/superpowersUse when starting feature work that needs isolation from current workspace or before executing implementation plans - ensures an isolated workspace exists via native tools or git worktree fallbackStars: 323kUpdated Claude CodeCodexVerifiedInstall
verification-before-completionobra/superpowersUse when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims; evidence before assertions alwaysStars: 323kUpdated Claude CodeCodexVerifiedInstall