[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7A7C8FGWP8SC3HEQMMDJPNW":3,"skill-same:01M7A7C8FGWP8SC3HEQMMDJPNW":73},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":29,"commitSha":30,"skillDirectory":31,"forksCount":32,"repositoryHtmlUrl":33,"repositoryHomepageUrl":6,"ownerHtmlUrl":34,"ownerBlogUrl":6,"ownerDescription":35,"updatedAt":36,"install":37,"resources":50},"01M7A7C8FGWP8SC3HEQMMDJPNW","python-expert",null,"Complete Python stack for cloud-native projects: async backend with FastAPI and Pydantic v2, agent flow orchestration with LangGraph\u002FLangChain on AWS Bedrock, data science (pandas, scikit-learn, numpy), Jupyter notebooks, testing with pytest, and code quality with ruff\u002Fblack\u002Fmypy\u002Fbandit. Use when building AI services (api, context-layer), writing FastAPI route handlers, implementing LangGraph StateGraph nodes\u002Fedges, doing data science\u002FML work, working with Jupyter notebooks, or running Python linting\u002Ftype checks. Trigger: Python, FastAPI, Pydantic, LangGraph, pytest, ruff. Do NOT trigger for: frontend development, mobile development, DevOps\u002FCI scripting in Bash. For AI architecture questions (RAG, model selection, evaluation), use agent-architecture-expert or evaluation-expert instead.","ronsilver\u002Fagent-covenant","ronsilver","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F46677526?v=4","01M7A719H1DVMZSKNAESAC82DA","Jorge Maturana","01M7A719J5GP33TM303CB8NN00",1,"MIT","https:\u002F\u002Fgithub.com\u002Fronsilver\u002Fagent-covenant\u002Fblob\u002Fmain\u002Fcontent\u002Fskills\u002Fpython-expert\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: python-expert\ndescription: \"Complete Python stack for cloud-native projects: async backend with FastAPI and Pydantic v2, agent flow orchestration with LangGraph\u002FLangChain on AWS Bedrock, data science (pandas, scikit-learn, numpy), Jupyter notebooks, testing with pytest, and code quality with ruff\u002Fblack\u002Fmypy\u002Fbandit. Use when building AI services (api, context-layer), writing FastAPI route handlers, implementing LangGraph StateGraph nodes\u002Fedges, doing data science\u002FML work, working with Jupyter notebooks, or running Python linting\u002Ftype checks. Trigger: Python, FastAPI, Pydantic, LangGraph, pytest, ruff. Do NOT trigger for: frontend development, mobile development, DevOps\u002FCI scripting in Bash. For AI architecture questions (RAG, model selection, evaluation), use agent-architecture-expert or evaluation-expert instead.\"\nlicense: MIT\nmetadata:\n  author: Community\n  version: \"1.0\"\n  category: backend\n  status: stable\n---\n# Python Expert\n\n**Python Stack: FastAPI, LangGraph\u002FLangChain, data science, testing and linting.**\n\n## Core Stack\n\n- API: FastAPI 0.110+ (routers, Depends, lifespan, middleware)\n- Validation: Pydantic v2 (`model_config = ConfigDict(from_attributes=True)`)\n- Async: `asyncio`, httpx, SQLAlchemy 2.0 async, asyncpg\n- AI: LangGraph (StateGraph, nodes, conditional edges) + LangChain (chains, tools)\n- AI Runtime: AWS Bedrock (`ChatBedrockConverse`)\n- Data Science: pandas, scikit-learn, numpy, joblib\n- Notebooks: Jupyter (jupytext, nbconvert, papermill, kernels)\n- Testing: pytest + fixtures + parametrize + httpx `AsyncClient`\n- Linting: `ruff format` -> `ruff check` -> `mypy` -> `bandit`\n- Packaging: pyproject.toml \u002F uv \u002F poetry\n\n## Project Structure\n\n```\nsrc\u002F\n  api\u002Frouters\u002F          # route handlers (thin)\n  core\u002F                 # config, dependencies, lifespan\n  models\u002F               # Pydantic schemas (request\u002Fresponse)\n  services\u002F             # business logic\n  repositories\u002F         # data access\n  multi_agents\u002F\n    orchestrator\u002F\n      branches\u002F\u003Cstimulus>\u002F\u003Cversion>\u002F\n        graph.py        # StateGraph definition\n        nodes.py        # node functions\n        edges.py        # conditional routing\n      stimuli_registry.py\n      state.py          # shared TypedDict state\ntests\u002F\n```\n\n## Architecture\n\n```\nRouter -> Service -> Repository (NEVER skip layers)\n```\n\n- Routers: parse -> call service -> return Pydantic model\n- Service: business logic only (no HTTP concerns)\n- Repository: async data access\n- NEVER business logic in routers | NEVER sync blocking in `async def`\n\n## Rules\n\n- `source .venv\u002Fbin\u002Factivate` before `pytest`\u002F`python` — ALWAYS\n- Docstrings: Google style (Args\u002FReturns\u002FRaises)\n- `ensure_ascii=False` only in `json.dumps`, never in LLM system prompts\n- ASCII-only in LLM system prompts (no em-dash, smart quotes)\n- NEVER log PII (tokens, government IDs)\n\n## LangGraph \u002F AI Patterns\n\n```python\nfrom langgraph.graph import StateGraph, END\nfrom typing import TypedDict\n\nclass State(TypedDict):\n    messages: list\n    next: str\n\ngraph = StateGraph(State)\ngraph.add_node(\"analyze\", analyze_node)\ngraph.add_conditional_edges(\"analyze\", route_fn, {\"a\": \"nodeA\", \"b\": END})\napp = graph.compile()\n```\n\n- NEVER mutate state directly -> return patches only\n- NEVER hardcode model IDs -> use config\u002Fenv\n- ALWAYS version branches (`v1\u002F`, `v2\u002F`) — never overwrite\n- ALWAYS register new stimuli in `stimuli_registry.py`\n- ALWAYS use `astream`\u002F`ainvoke` for async execution\n- Wire to Bedrock via `ChatBedrockConverse`\n\n## Data Science\n\n- pandas: vectorized ops over loops (100x perf)\n- scikit-learn: pipelines, ColumnTransformer, cross-validation\n- numpy: broadcasting, masking, avoid Python-level loops\n- joblib: model persistence (`dump`\u002F`load`), parallel processing\n- Notebooks: jupytext for .py sync, nbconvert for automation, NEVER secrets in notebooks\n\n## Testing\n\n```python\nimport pytest\nfrom httpx import AsyncClient, ASGITransport\nfrom myapp.main import app\n\n@pytest.mark.anyio\nasync def test_create_item():\n    transport = ASGITransport(app=app)\n    async with AsyncClient(transport=transport, base_url=\"http:\u002F\u002Ftest\") as client:\n        response = await client.post(\"\u002Fitems\", json={\"value\": 1000})\n        assert response.status_code == 201\n```\n\n- Fixtures over setup\u002Fteardown. Parametrize over loops.\n- `httpx.AsyncClient` with `ASGITransport` for FastAPI testing\n- NEVER global client — always `async with`\n\n## Linting (Golden Chain)\n\n```\nruff format -> ruff check -> mypy -> bandit\n```\nStop on first failure. Never `|| true` in CI.\n\n## Constraints\n\n- NEVER business logic in routers -> service layer only\n- NEVER sync blocking in `async def` -> `run_in_executor` or async libs\n- NEVER `import *` — explicit imports only\n- NEVER mutate LangGraph state directly — return patches\n- NEVER hardcode model IDs or secrets in notebooks\n- ALWAYS type-annotate all function signatures\n- ALWAYS `raise HTTPException` with explicit `status_code`\n- ALWAYS propagate `request_id` via `contextvars`\n- NEVER `from langchain_community import *` — pin exact imports\n\n## Security\n\n- ALWAYS run `bandit` in CI and `pip-audit` for dependency CVEs (OWASP A03)\n- NEVER use `pickle` or `yaml.load` on untrusted input (CWE-502) — use `yaml.safe_load` or JSON\n- NEVER pass user input into URLs fetched by httpx\u002Frequests without validation (SSRF)\n- ALWAYS use parameterized queries — never string-concatenate SQL (SQLi)\n\n## Overview\n\nPython services in this project use FastAPI for async APIs, LangGraph on AWS Bedrock for agent orchestration, and pandas\u002Fscikit-learn for data science. This skill covers the full stack from route handlers to LangGraph state machines to linting.\n\n## Quick Reference\n\n| Layer | Library | Responsibility |\n|---|---|---|\n| API | FastAPI + Pydantic v2 | Route handlers, request\u002Fresponse validation |\n| AI Workflows | LangGraph + Bedrock | Agent state machines, LLM invocation |\n| Data | pandas, scikit-learn, numpy | Analytics, ML pipelines |\n| Testing | pytest + httpx AsyncClient | Unit + integration tests |\n| Linting | ruff → mypy → bandit | Format, type-check, security scan |\n\n## Workflow\n\n1. Define Pydantic v2 models with `ConfigDict(from_attributes=True)` for request\u002Fresponse schemas\n2. Implement FastAPI router with thin handlers: parse → call service → return model\n3. Write async service layer with business logic and `contextvars` for `request_id`\n4. For AI workflows: define LangGraph `StateGraph` with typed `State`, nodes, and conditional edges\n5. Register new agent branches in `stimuli_registry.py` with versioned directories\n6. Write pytest fixtures + parametrized tests using `httpx.AsyncClient` with `ASGITransport`\n7. Run golden chain: `ruff format` → `ruff check` → `mypy` → `bandit`\n\n## Anti-patterns\n\nFAIL: Business logic in FastAPI route handlers\nPASS: Route handlers only parse input and delegate to service layer\n\n```python\n# FAIL:\n@app.post(\"\u002Fitems\")\nasync def create_item(req: ItemRequest):\n    if req.value \u003C= 0:\n        raise HTTPException(400)\n    result = await db.execute(\"INSERT ...\")\n    return {\"status\": \"ok\"}\n\n# PASS:\n@app.post(\"\u002Fitems\")\nasync def create_item(req: ItemRequest):\n    return await item_service.create(req)\n```\n\nFAIL: Synchronous blocking calls inside `async def`\nPASS: Use async libraries or `run_in_executor` for CPU-bound work\n\n```python\n# FAIL:\nasync def process():\n    time.sleep(2)  # blocks event loop\n    result = pd.DataFrame(...).apply(slow_fn)  # CPU-bound blocks event loop\n\n# PASS:\nasync def process():\n    await asyncio.sleep(2)\n    result = await asyncio.to_thread(lambda: pd.DataFrame(...).apply(slow_fn))\n```\n\nFAIL: Mutating LangGraph state directly inside nodes\nPASS: Always return patches from node functions\n\n```python\n# FAIL:\ndef analyze_node(state: State) -> dict:\n    state[\"messages\"].append({\"role\": \"assistant\", \"content\": \"done\"})\n    return state\n\n# PASS:\ndef analyze_node(state: State) -> dict:\n    return {\"messages\": [{\"role\": \"assistant\", \"content\": \"done\"}]}\n```\n\n## References\n\n- [FastAPI Documentation](https:\u002F\u002Ffastapi.tiangolo.com\u002F) (last_verified: 2025-02)\n- [LangGraph Tutorial](https:\u002F\u002Flangchain-ai.github.io\u002Flanggraph\u002Ftutorials\u002F) (last_verified: 2025-01)\n- [AWS Bedrock Converse API](https:\u002F\u002Fdocs.aws.amazon.com\u002Fbedrock\u002Flatest\u002Fuserguide\u002Fconverse-api.html) (last_verified: 2024-12)\n\n- [references\u002Fasync-patterns.md](references\u002Fasync-patterns.md)\n- [references\u002Fdatascience.md](references\u002Fdatascience.md)\n- [references\u002Flanggraph-patterns.md](references\u002Flanggraph-patterns.md)\n- [references\u002Ftesting-patterns.md](references\u002Ftesting-patterns.md)\n\n## Verification Checklist\n\n- [ ] Business logic separated into service layer (never in routers)\n- [ ] All `async def` functions use async libraries only (no sync blocking calls)\n- [ ] LangGraph nodes return state patches (never mutate state directly)\n- [ ] Pydantic v2 models use `ConfigDict(from_attributes=True)` for ORM mode\n- [ ] Golden chain passed: `ruff format` → `ruff check` → `mypy` → `bandit`\n- [ ] `request_id` propagated via `contextvars` throughout request lifecycle\n- [ ] No PII logged (tokens, government IDs)\n- [ ] `bandit` and `pip-audit` run clean; no `pickle`\u002F`yaml.load` on untrusted input\n\n## Troubleshooting\n\n| Symptom | Likely cause | Fix |\n|---------|-------------|-----|\n| Event loop blocked during request | Sync `time.sleep()` or CPU-bound operation in `async def` | Replace with `asyncio.sleep()` or `await asyncio.to_thread()` for CPU work |\n| FastAPI returns 422 on valid input | Pydantic v2 model uses v1-style config or `ConfigDict` missing | Verify `model_config = ConfigDict(from_attributes=True)` on model |\n| LangGraph node state not updating | Node mutates state directly instead of returning patch | Change node to return dict of only changed keys (never mutate `state` arg) |\n| Pydantic v2 JSON serialization fails for custom types (edge case: non-serializable types) | Custom type lacks `__get_pydantic_core_schema__` or serializer | Add `model_serializer` or use `field_serializer` decorator on the field; register type adapter |\n\n| [WARN] FastAPI `Depends()` evaluates DB session outside request context on error path | Exception handler may try to access request-scoped dependency after request cleaned up | Create DB session in middleware\u002Flifespan, not Depends(); use `try\u002Ffinally` for cleanup |\n| pytest --cov shows 100% coverage but critical exception path was never tested | Coverage tracks line execution, not logic branches; uncovered except blocks hidden from metric | Use --cov-branch to measure branch coverage; enforce if\u002Fexcept path coverage in CI gate |\n| Limitation: LangGraph checkpoint created during node execution is rolled back if node later fails | Checkpointing at node start commits state that node may not fully validate until end | Checkpoint only at end of node execution; use conditional edge to skip checkpoint on partial failure |\n","# Python Expert\n\n**Python Stack: FastAPI, LangGraph\u002FLangChain, data science, testing and linting.**\n\n## Core Stack\n\n- API: FastAPI 0.110+ (routers, Depends, lifespan, middleware)\n- Validation: Pydantic v2 (`model_config = ConfigDict(from_attributes=True)`)\n- Async: `asyncio`, httpx, SQLAlchemy 2.0 async, asyncpg\n- AI: LangGraph (StateGraph, nodes, conditional edges) + LangChain (chains, tools)\n- AI Runtime: AWS Bedrock (`ChatBedrockConverse`)\n- Data Science: pandas, scikit-learn, numpy, joblib\n- Notebooks: Jupyter (jupytext, nbconvert, papermill, kernels)\n- Testing: pytest + fixtures + parametrize + httpx `AsyncClient`\n- Linting: `ruff format` -> `ruff check` -> `mypy` -> `bandit`\n- Packaging: pyproject.toml \u002F uv \u002F poetry\n\n## Project Structure\n\n```\nsrc\u002F\n  api\u002Frouters\u002F          # route handlers (thin)\n  core\u002F                 # config, dependencies, lifespan\n  models\u002F               # Pydantic schemas (request\u002Fresponse)\n  services\u002F             # business logic\n  repositories\u002F         # data access\n  multi_agents\u002F\n    orchestrator\u002F\n      branches\u002F\u003Cstimulus>\u002F\u003Cversion>\u002F\n        graph.py        # StateGraph definition\n        nodes.py        # node functions\n        edges.py        # conditional routing\n      stimuli_registry.py\n      state.py          # shared TypedDict state\ntests\u002F\n```\n\n## Architecture\n\n```\nRouter -> Service -> Repository (NEVER skip layers)\n```\n\n- Routers: parse -> call service -> return Pydantic model\n- Service: business logic only (no HTTP concerns)\n- Repository: async data access\n- NEVER business logic in routers | NEVER sync blocking in `async def`\n\n## Rules\n\n- `source .venv\u002Fbin\u002Factivate` before `pytest`\u002F`python` — ALWAYS\n- Docstrings: Google style (Args\u002FReturns\u002FRaises)\n- `ensure_ascii=False` only in `json.dumps`, never in LLM system prompts\n- ASCII-only in LLM system prompts (no em-dash, smart quotes)\n- NEVER log PII (tokens, government IDs)\n\n## LangGraph \u002F AI Patterns\n\n```python\nfrom langgraph.graph import StateGraph, END\nfrom typing import TypedDict\n\nclass State(TypedDict):\n    messages: list\n    next: str\n\ngraph = StateGraph(State)\ngraph.add_node(\"analyze\", analyze_node)\ngraph.add_conditional_edges(\"analyze\", route_fn, {\"a\": \"nodeA\", \"b\": END})\napp = graph.compile()\n```\n\n- NEVER mutate state directly -> return patches only\n- NEVER hardcode model IDs -> use config\u002Fenv\n- ALWAYS version branches (`v1\u002F`, `v2\u002F`) — never overwrite\n- ALWAYS register new stimuli in `stimuli_registry.py`\n- ALWAYS use `astream`\u002F`ainvoke` for async execution\n- Wire to Bedrock via `ChatBedrockConverse`\n\n## Data Science\n\n- pandas: vectorized ops over loops (100x perf)\n- scikit-learn: pipelines, ColumnTransformer, cross-validation\n- numpy: broadcasting, masking, avoid Python-level loops\n- joblib: model persistence (`dump`\u002F`load`), parallel processing\n- Notebooks: jupytext for .py sync, nbconvert for automation, NEVER secrets in notebooks\n\n## Testing\n\n```python\nimport pytest\nfrom httpx import AsyncClient, ASGITransport\nfrom myapp.main import app\n\n@pytest.mark.anyio\nasync def test_create_item():\n    transport = ASGITransport(app=app)\n    async with AsyncClient(transport=transport, base_url=\"http:\u002F\u002Ftest\") as client:\n        response = await client.post(\"\u002Fitems\", json={\"value\": 1000})\n        assert response.status_code == 201\n```\n\n- Fixtures over setup\u002Fteardown. Parametrize over loops.\n- `httpx.AsyncClient` with `ASGITransport` for FastAPI testing\n- NEVER global client — always `async with`\n\n## Linting (Golden Chain)\n\n```\nruff format -> ruff check -> mypy -> bandit\n```\nStop on first failure. Never `|| true` in CI.\n\n## Constraints\n\n- NEVER business logic in routers -> service layer only\n- NEVER sync blocking in `async def` -> `run_in_executor` or async libs\n- NEVER `import *` — explicit imports only\n- NEVER mutate LangGraph state directly — return patches\n- NEVER hardcode model IDs or secrets in notebooks\n- ALWAYS type-annotate all function signatures\n- ALWAYS `raise HTTPException` with explicit `status_code`\n- ALWAYS propagate `request_id` via `contextvars`\n- NEVER `from langchain_community import *` — pin exact imports\n\n## Security\n\n- ALWAYS run `bandit` in CI and `pip-audit` for dependency CVEs (OWASP A03)\n- NEVER use `pickle` or `yaml.load` on untrusted input (CWE-502) — use `yaml.safe_load` or JSON\n- NEVER pass user input into URLs fetched by httpx\u002Frequests without validation (SSRF)\n- ALWAYS use parameterized queries — never string-concatenate SQL (SQLi)\n\n## Overview\n\nPython services in this project use FastAPI for async APIs, LangGraph on AWS Bedrock for agent orchestration, and pandas\u002Fscikit-learn for data science. This skill covers the full stack from route handlers to LangGraph state machines to linting.\n\n## Quick Reference\n\n| Layer | Library | Responsibility |\n|---|---|---|\n| API | FastAPI + Pydantic v2 | Route handlers, request\u002Fresponse validation |\n| AI Workflows | LangGraph + Bedrock | Agent state machines, LLM invocation |\n| Data | pandas, scikit-learn, numpy | Analytics, ML pipelines |\n| Testing | pytest + httpx AsyncClient | Unit + integration tests |\n| Linting | ruff → mypy → bandit | Format, type-check, security scan |\n\n## Workflow\n\n1. Define Pydantic v2 models with `ConfigDict(from_attributes=True)` for request\u002Fresponse schemas\n2. Implement FastAPI router with thin handlers: parse → call service → return model\n3. Write async service layer with business logic and `contextvars` for `request_id`\n4. For AI workflows: define LangGraph `StateGraph` with typed `State`, nodes, and conditional edges\n5. Register new agent branches in `stimuli_registry.py` with versioned directories\n6. Write pytest fixtures + parametrized tests using `httpx.AsyncClient` with `ASGITransport`\n7. Run golden chain: `ruff format` → `ruff check` → `mypy` → `bandit`\n\n## Anti-patterns\n\nFAIL: Business logic in FastAPI route handlers\nPASS: Route handlers only parse input and delegate to service layer\n\n```python\n# FAIL:\n@app.post(\"\u002Fitems\")\nasync def create_item(req: ItemRequest):\n    if req.value \u003C= 0:\n        raise HTTPException(400)\n    result = await db.execute(\"INSERT ...\")\n    return {\"status\": \"ok\"}\n\n# PASS:\n@app.post(\"\u002Fitems\")\nasync def create_item(req: ItemRequest):\n    return await item_service.create(req)\n```\n\nFAIL: Synchronous blocking calls inside `async def`\nPASS: Use async libraries or `run_in_executor` for CPU-bound work\n\n```python\n# FAIL:\nasync def process():\n    time.sleep(2)  # blocks event loop\n    result = pd.DataFrame(...).apply(slow_fn)  # CPU-bound blocks event loop\n\n# PASS:\nasync def process():\n    await asyncio.sleep(2)\n    result = await asyncio.to_thread(lambda: pd.DataFrame(...).apply(slow_fn))\n```\n\nFAIL: Mutating LangGraph state directly inside nodes\nPASS: Always return patches from node functions\n\n```python\n# FAIL:\ndef analyze_node(state: State) -> dict:\n    state[\"messages\"].append({\"role\": \"assistant\", \"content\": \"done\"})\n    return state\n\n# PASS:\ndef analyze_node(state: State) -> dict:\n    return {\"messages\": [{\"role\": \"assistant\", \"content\": \"done\"}]}\n```\n\n## References\n\n- [FastAPI Documentation](https:\u002F\u002Ffastapi.tiangolo.com\u002F) (last_verified: 2025-02)\n- [LangGraph Tutorial](https:\u002F\u002Flangchain-ai.github.io\u002Flanggraph\u002Ftutorials\u002F) (last_verified: 2025-01)\n- [AWS Bedrock Converse API](https:\u002F\u002Fdocs.aws.amazon.com\u002Fbedrock\u002Flatest\u002Fuserguide\u002Fconverse-api.html) (last_verified: 2024-12)\n\n- [references\u002Fasync-patterns.md](references\u002Fasync-patterns.md)\n- [references\u002Fdatascience.md](references\u002Fdatascience.md)\n- [references\u002Flanggraph-patterns.md](references\u002Flanggraph-patterns.md)\n- [references\u002Ftesting-patterns.md](references\u002Ftesting-patterns.md)\n\n## Verification Checklist\n\n- [ ] Business logic separated into service layer (never in routers)\n- [ ] All `async def` functions use async libraries only (no sync blocking calls)\n- [ ] LangGraph nodes return state patches (never mutate state directly)\n- [ ] Pydantic v2 models use `ConfigDict(from_attributes=True)` for ORM mode\n- [ ] Golden chain passed: `ruff format` → `ruff check` → `mypy` → `bandit`\n- [ ] `request_id` propagated via `contextvars` throughout request lifecycle\n- [ ] No PII logged (tokens, government IDs)\n- [ ] `bandit` and `pip-audit` run clean; no `pickle`\u002F`yaml.load` on untrusted input\n\n## Troubleshooting\n\n| Symptom | Likely cause | Fix |\n|---------|-------------|-----|\n| Event loop blocked during request | Sync `time.sleep()` or CPU-bound operation in `async def` | Replace with `asyncio.sleep()` or `await asyncio.to_thread()` for CPU work |\n| FastAPI returns 422 on valid input | Pydantic v2 model uses v1-style config or `ConfigDict` missing | Verify `model_config = ConfigDict(from_attributes=True)` on model |\n| LangGraph node state not updating | Node mutates state directly instead of returning patch | Change node to return dict of only changed keys (never mutate `state` arg) |\n| Pydantic v2 JSON serialization fails for custom types (edge case: non-serializable types) | Custom type lacks `__get_pydantic_core_schema__` or serializer | Add `model_serializer` or use `field_serializer` decorator on the field; register type adapter |\n\n| [WARN] FastAPI `Depends()` evaluates DB session outside request context on error path | Exception handler may try to access request-scoped dependency after request cleaned up | Create DB session in middleware\u002Flifespan, not Depends(); use `try\u002Ffinally` for cleanup |\n| pytest --cov shows 100% coverage but critical exception path was never tested | Coverage tracks line execution, not logic branches; uncovered except blocks hidden from metric | Use --cov-branch to measure branch coverage; enforce if\u002Fexcept path coverage in CI gate |\n| Limitation: LangGraph checkpoint created during node execution is rolled back if node later fails | Checkpointing at node start commits state that node may not fully validate until end | Checkpoint only at end of node execution; use conditional edge to skip checkpoint on partial failure |\n",{"name":5,"license":15,"metadata":24,"description":7},{"author":25,"status":26,"version":27,"category":28},"Community","stable","1.0","backend","main","6692ee5cbe39d4533b824e1c55d7d4fc01c4dde7","content\u002Fskills\u002Fpython-expert",0,"https:\u002F\u002Fgithub.com\u002Fronsilver\u002Fagent-covenant","https:\u002F\u002Fgithub.com\u002Fronsilver",":v","2026-08-27 05:49:26",{"source":8,"skillName":5,"commands":38,"prompt":48,"zipAvailable":49},[39,42,45],{"tool":40,"command":41},"npx","npx skills add ronsilver\u002Fagent-covenant --skill python-expert",{"tool":43,"command":44},"bunx","bunx skills add ronsilver\u002Fagent-covenant --skill python-expert",{"tool":46,"command":47},"pnpm","pnpm dlx skills add ronsilver\u002Fagent-covenant --skill python-expert","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fronsilver\u002Fagent-covenant\u002Fblob\u002Fmain\u002Fcontent\u002Fskills\u002Fpython-expert\u002FSKILL.md",true,[51,57,61,65,69],{"path":52,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":55,"sourceHtmlUrl":56},"evals\u002Fevals.json","REFERENCE","参考文档",2604,"https:\u002F\u002Fgithub.com\u002Fronsilver\u002Fagent-covenant\u002Fblob\u002Fmain\u002Fcontent\u002Fskills\u002Fpython-expert\u002Fevals\u002Fevals.json",{"path":58,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":59,"sourceHtmlUrl":60},"references\u002Fasync-patterns.md",1298,"https:\u002F\u002Fgithub.com\u002Fronsilver\u002Fagent-covenant\u002Fblob\u002Fmain\u002Fcontent\u002Fskills\u002Fpython-expert\u002Freferences\u002Fasync-patterns.md",{"path":62,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":63,"sourceHtmlUrl":64},"references\u002Fdatascience.md",1196,"https:\u002F\u002Fgithub.com\u002Fronsilver\u002Fagent-covenant\u002Fblob\u002Fmain\u002Fcontent\u002Fskills\u002Fpython-expert\u002Freferences\u002Fdatascience.md",{"path":66,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":67,"sourceHtmlUrl":68},"references\u002Flanggraph-patterns.md",1682,"https:\u002F\u002Fgithub.com\u002Fronsilver\u002Fagent-covenant\u002Fblob\u002Fmain\u002Fcontent\u002Fskills\u002Fpython-expert\u002Freferences\u002Flanggraph-patterns.md",{"path":70,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":71,"sourceHtmlUrl":72},"references\u002Ftesting-patterns.md",1471,"https:\u002F\u002Fgithub.com\u002Fronsilver\u002Fagent-covenant\u002Fblob\u002Fmain\u002Fcontent\u002Fskills\u002Fpython-expert\u002Freferences\u002Ftesting-patterns.md",[74,81,88,95,102,109],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":19},"01M7A7HYVYNZ60GNGWAV51ZQ52","web-browsing-agent-expert","Web browsing for AI agents: driving a headless browser (Playwright, Puppeteer) from agent tooling, navigation and page-state grounding, DOM extraction and structured data capture, form interaction, session and cookie management, anti-bot mitigation awareness, and safe browsing rules (no PII exfiltration, respect robots and terms). Use when building a browsing tool or MCP server for an agent, teaching an agent to navigate and read web pages, extracting structured content from dynamic sites, or handling login walls and pagination in agent workflows. Trigger: web browsing agent, headless browser, Playwright MCP, Puppeteer, browser automation for agents, DOM extraction, page navigation, session management. Do NOT trigger for: end-to-end UI testing of an application (use playwright-expert); writing standalone scraping scripts for data pipelines (use python-expert); fetching a single public URL (use the fetch tool).","https:\u002F\u002Fgithub.com\u002Fronsilver\u002Fagent-covenant\u002Fblob\u002Fmain\u002Fcontent\u002Fskills\u002Fweb-browsing-agent-expert\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":19},"01M7A7HRC6951BAJ9NHBZA2M7Y","vector-databases","Design and operate vector databases for cloud-native AI features. Use when selecting between pgvector, Pinecone, or Weaviate for AI context layer or integration-hub; designing embedding schemas and index parameters; implementing ANN search with metadata filtering; managing embedding model versions; optimizing query latency; or debugging low retrieval quality. Pairs with rag-architecture for pipeline design and postgres-database-expert for pgvector specifics. Trigger: vector database, pgvector, Pinecone, Weaviate, embedding, ANN search, HNSW, cosine similarity. Do NOT trigger for: relational SQL optimization, standard PostgreSQL schema design, Redis caching.","https:\u002F\u002Fgithub.com\u002Fronsilver\u002Fagent-covenant\u002Fblob\u002Fmain\u002Fcontent\u002Fskills\u002Fvector-databases\u002FSKILL.md",[],[],{"skillNo":89,"name":90,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":19},"01M7A7HGHGWE7NZ5A08HQZJXDN","typescript-expert","Full-stack TypeScript stack for modern projects: frontend SSR\u002FCSR with Next.js 14 App Router and React, backend APIs with Node.js (Express\u002FFastify), state management with Zustand\u002FRedux Toolkit, unit and integration testing with Vitest\u002FJest + React Testing Library + MSW, and static analysis with ESLint\u002FPrettier\u002Ftsc. Use when building React components or hooks, implementing Next.js App Router or Server Components, writing Node.js REST API handlers, implementing middleware (auth, rate-limit, logging), managing client state (Zustand\u002FRTK), writing frontend\u002Fbackend tests, or running TypeScript linting\u002Ftype checks. Trigger: TypeScript, Next.js, React, Zustand, Node.js, Express, Fastify, MSW, Vitest. Do NOT trigger for: Python backend development, Go microservices, iOS\u002Fmobile development.","https:\u002F\u002Fgithub.com\u002Fronsilver\u002Fagent-covenant\u002Fblob\u002Fmain\u002Fcontent\u002Fskills\u002Ftypescript-expert\u002FSKILL.md",[],[],{"skillNo":96,"name":97,"nameZh":6,"description":98,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":99,"categories":100,"keywords":101,"publishedAt":19},"01M7A7H83JK9SENNYAPTTB6B4A","tool-usage","Guide correct tool selection, design, and orchestration for AI agents. Use when choosing between dedicated vs Bash tools, designing MCP tool interfaces, naming tool parameters, handling tool response limits, orchestrating parallel vs sequential calls, evaluating tool accuracy, applying ACI design principles, selecting workflow patterns, or reading\u002Ffiltering\u002Ftransforming\u002Fgenerating structured data (JSON, YAML, CSV, TOML, XML). Trigger: tool selection, MCP tool design, orchestration, ACI, parallel execution, composite tool, structured data, jq, yq, dasel, mlr, csvkit. Do NOT trigger for: writing application business logic, domain-specific development (route to domain skill), database migrations.","https:\u002F\u002Fgithub.com\u002Fronsilver\u002Fagent-covenant\u002Fblob\u002Fmain\u002Fcontent\u002Fskills\u002Ftool-usage\u002FSKILL.md",[],[],{"skillNo":103,"name":104,"nameZh":6,"description":105,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":106,"categories":107,"keywords":108,"publishedAt":19},"01M7A7GZ9A2VA9T7BJ07VV3PD5","token-efficiency","Enforce token-efficient output, compression, caching, and model routing. Use when calibrating response verbosity, applying compression strategies to logs or RAG chunks, routing tasks to the right model tier, setting thinking budgets, enforcing word limits, compressing context before reinitiation, applying KV-cache ordering, masking tool output observations, or applying clarification-first protocol before irreversible actions. Trigger: token efficiency, compression, model routing, thinking budget, KV-cache, clarification protocol. Do NOT trigger for: non-agent tooling, CI\u002FCD pipeline scripting, infrastructure provisioning.","https:\u002F\u002Fgithub.com\u002Fronsilver\u002Fagent-covenant\u002Fblob\u002Fmain\u002Fcontent\u002Fskills\u002Ftoken-efficiency\u002FSKILL.md",[],[],{"skillNo":110,"name":111,"nameZh":6,"description":112,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":113,"categories":114,"keywords":115,"publishedAt":19},"01M7A7GQFTY8GWVN4Z66Q4J52V","time-series-db","Time-series database patterns for cloud-native metrics and analytics: TimescaleDB, InfluxDB, and Amazon Timestream selection; continuous aggregates, retention policies, downsampling, and integration with Prometheus\u002FGrafana. Use when storing business metrics over time, building custom business dashboards, designing high-frequency event storage, or querying time-bucketed aggregations. Trigger: time-series, TimescaleDB, InfluxDB, Prometheus, Grafana, hypertable, continuous aggregate, retention policy. Do NOT trigger for: relational PostgreSQL schema design, NoSQL document stores, Kafka event streaming.","https:\u002F\u002Fgithub.com\u002Fronsilver\u002Fagent-covenant\u002Fblob\u002Fmain\u002Fcontent\u002Fskills\u002Ftime-series-db\u002FSKILL.md",[],[]]