portfolio
/portfolio
Udostępnia bazę wiedzy systemu portfolio: zapytania o pozycje, strategie routingu i integracje z dostawcami, z analizą domenową i rekomendacjami.
- Autor
- sd0xdev ↗
- Repozytorium
- sd0x-harness ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 08.10.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 3
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 0
Brak sygnałów. Repozytorium zmienione 08.10.2026, bez odwołań do wycofanych modeli i API.
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
Co robi i kiedy
Udostępnia bazę wiedzy systemu portfolio: zapytania o pozycje, strategie routingu i integracje z dostawcami, z analizą domenową i rekomendacjami.
Oryginalny opis (EN)
Portfolio system knowledge base. Use when: position queries, routing strategy questions, provider integration. Not for: general code exploration (use code-explore), code review (use codex-code-review). Output: domain-specific analysis + recommendations.
Jak działa
- Trigger
- When NOT to Use
- Core Files
- API Overview
- Output
- Verification
- Development Guide
- References
- Tests
- Examples
Podgląd SKILL.md
---
name: portfolio
description: "Portfolio system knowledge base. Use when: position queries, routing strategy questions, provider integration. Not for: general code exploration (use code-explore), code review (use codex-code-review). Output: domain-specific analysis + recommendations."
allowed-tools: Read, Grep, Glob
context: fork
agent: Explore
---
# Portfolio Skill
## Trigger
- Keywords: Portfolio, portfolio, position, {PRIMARY_PROVIDER}, protocol, lending, staking, liquidity
## When NOT to Use
- General token queries (not Portfolio positions)
- Transaction building (use corresponding provider)
- Non-portfolio related API issues
## Core Files
| Type | File | Purpose |
| ---------- | -------------------------------------------------- | ----------------------- |
| Controller | `src/entity/portfolio/portfolio.controller.ts` | REST API |
| Router | `src/service/portfolio/source-router/*.service.ts` | Routing orchestration |
| Client | `src/service/portfolio/providers/{provider}/*.ts` | {PRIMARY_PROVIDER} integration |
| Aggregator | `src/service/portfolio/aggregation/*.service.ts` | Aggregation computation |
| DTO | `src/dto/portfolio/position.types.ts` | Position model |
## API Overview
**Base**: `/onchain/v1/portfolio`
| Endpoint | Method | Purpose |
| ------------ | ------ | --------------------- |
| `/positions` | POST | Get portfolio positions |
| `/chains` | GET | Supported chains list |
| `/protocols` | GET | Supported protocols list |
## Output
- Domain-specific query results with code references
- Analysis and recommendations based on current architecture
## Verification
- Position data correctly normalized
- Cache hit/miss working properly
- Aggregation calculations accurate
## Development Guide
### Add Protocol Support
1. Check if {PRIMARY_PROVIDER} supports it
2. If custom build needed: implement `PortfolioPositionExtractor` + register + configure routing
### Add Data Source
1. Implement `ProviderClient` + `Adapter`
2. Register with `SourceRouter`
3. Configure routing strategy
### Debug
```bash
redis-cli keys "portfolio:{provider}:*"
redis-cli get "portfolio:{provider}:positions:0x...:v2:..."
curl -X POST /positions -d '{"isForceRefresh": true, ...}'
```
## References
- `references/architecture.md` - System architecture + cache strategy
- `references/api.md` - API reference + data models
- @docs/features/portfolio/ - Detailed documentation
## Tests
| Type | Location |
| ----------- | ------------------------------ |
| Unit | `test/unit/service/portfolio/` |
| Integration | `test/integration/portfolio/` |
## Examples
```
Input: How to query portfolio positions?
Action: Explain POST /positions API + routing strategy
```
```
Input: How does {PRIMARY_PROVIDER} integration work?
Action: Explain {PRIMARY_PROVIDER}Client + {PRIMARY_PROVIDER}Adapter flow
```
Pliki w paczce (3)
- SKILL.md 3 KB
- references/api.md 3 KB
- references/architecture.md 5 KB
Wersje
| Repozytorium | Wynik | Licencja |
|---|---|---|
| Ta strona · sd0xdev/sd0x-harness | 100 | MIT |
| fainir/agent-harness | 100 | MIT |
| zhou210712/claude-for-legal-zh | 96 | Apache-2.0 |
| anthropics/claude-for-legal | 95 | Apache-2.0 |
| uk-agents/uk-legal-plugins | 95 | Apache-2.0 |
| zekaisuni/claude-for-legal-turkish | 95 | Apache-2.0 |
Migawka bazy z 13.11.2026 · wersja paczki 3e1dbf6b1a13 (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 0 · ranking
Podobne skille
- 95portfolio-manager
Analizuje portfel brokerski przez Alpaca MCP: alokację aktywów, metryki ryzyka, pozycje i dywersyfikację, a następnie generuje rekomendacje rebalansowania. - 95portfolio-manager
Analizuje portfel inwestycyjny przez Alpaca MCP Server: pobiera pozycje, ocenia alokację, ryzyko i dywersyfikację oraz proponuje rebalansowanie. - 95portfolio-manager
Analizuje portfel inwestycyjny przez Alpaca MCP Server: pobiera pozycje, ocenia alokację, ryzyko i dywersyfikację oraz proponuje rebalansowanie. - 95portfolio-manager
Analizuje portfel inwestycyjny przez Alpaca MCP Server: pobiera pozycje, ocenia alokację, ryzyko i dywersyfikację oraz proponuje rebalansowanie. - 95portfolio-manager
Analizuje portfel w brokerze Alpaca przez MCP: pozycje, alokację aktywów, miary ryzyka, dywersyfikację i propozycje rebalansowania.