用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/vamseeachanta/workspace-hub --skill trello-api-1-use-batch-operations命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Write outbound email and external messages in Vamsee Achanta's voice — a subtle offer to help, never bold or rash claims. Load before drafting ANY email, LinkedIn/Collide reply, proposal note, or outreach sent under his name.
Save/publish analysis or computation results from ANY ecosystem repo to Hugging Face as a queryable, viewer-renderable dataset. Use when the user wants to "save results to hugging face", "publish dataset to HF", "hugging face data saving", "save analysis results", "hf dataset", "make results queryable", or "render via datasets-server API". Reshapes nested results into flat parquet tables, writes a dataset card with a viewer `configs:` block and provenance, applies license/public-vs-private routing, enforces a domain data-quality gate (faithful-to-source != correct), publishes to `aceengineer/<repo>-<projection>`, and verifies via the datasets-server API.
Clone, create, fork, configure, and manage GitHub repositories. Manage remotes, secrets, releases, and workflows. Works with gh CLI or falls back to git + GitHub REST API via curl.
正在显示 SKILL.md
基于 SOC 职业分类
| name | trello-api-1-use-batch-operations |
| description | Sub-skill of trello-api: 1. Use Batch Operations (+3). |
| version | 1.0.0 |
| category | business |
| type | reference |
| scripts_exempt | true |
# GOOD: Batch operations when possible
import requests
def batch_create_cards(list_id, cards):
"""Create multiple cards efficiently."""
for card in cards:
requests.post(
"https://api.trello.com/1/cards",
data={
"key": API_KEY,
"token": TOKEN,
"idList": list_id,
**card
}
)
# Small delay to avoid rate limits
time.sleep(0.1)
# AVOID: Individual requests without batching consideration
import time
from functools import wraps
def rate_limit(max_per_second=10):
"""Rate limit decorator."""
min_interval = 1.0 / max_per_second
last_call = [0.0]
def decorator(func):
@wraps(func)
def wrapper(*args, **kwargs):
elapsed = time.time() - last_call[0]
if elapsed < min_interval:
time.sleep(min_interval - elapsed)
result = func(*args, **kwargs)
last_call[0] = time.time()
return result
return wrapper
return decorator
@rate_limit(max_per_second=10)
def api_call(endpoint, **kwargs):
return requests.get(endpoint, params=kwargs)
from functools import lru_cache
from datetime import datetime, timedelta
class TrelloCache:
def __init__(self, ttl_seconds=300):
self.ttl = ttl_seconds
self.cache = {}
def get_board(self, client, board_id):
key = f"board_{board_id}"
now = datetime.now()
if key in self.cache:
data, timestamp = self.cache[key]
if now - timestamp < timedelta(seconds=self.ttl):
return data
board = client.get_board(board_id)
self.cache[key] = (board, now)
return board
import requests
from requests.exceptions import RequestException
def safe_trello_request(method, url, **kwargs):
"""Make Trello API request with error handling."""
try:
response = requests.request(method, url, **kwargs)
response.raise_for_status()
return response.json()
except requests.exceptions.HTTPError as e:
if e.response.status_code == 429:
# Rate limited - wait and retry
time.sleep(10)
return safe_trello_request(method, url, **kwargs)
elif e.response.status_code == 401:
raise Exception("Invalid API credentials")
else:
raise
except RequestException as e:
raise Exception(f"Network error: {e}")