用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/vamseeachanta/workspace-hub --skill n8n-5-data-transformation-with-code-node命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 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.
基于 SOC 职业分类
正在显示 SKILL.md
| name | n8n-5-data-transformation-with-code-node |
| description | Sub-skill of n8n: 5. Data Transformation with Code Node (+1). |
| version | 1.0.0 |
| category | operations |
| type | reference |
| scripts_exempt | true |
// Code Node: Advanced Data Transformation
// Mode: Run Once for All Items
// Access all input items
const items = $input.all();
// Group items by category
const groupedByCategory = items.reduce((acc, item) => {
const category = item.json.category || 'uncategorized';
if (!acc[category]) {
acc[category] = [];
}
acc[category].push(item.json);
return acc;
}, {});
// Calculate statistics per category
const categoryStats = Object.entries(groupedByCategory).map(([category, items]) => {
const values = items.map(i => parseFloat(i.value) || 0);
return {
category,
count: items.length,
total: values.reduce((a, b) => a + b, 0),
average: values.length > 0 ? values.reduce((a, b) => a + b, 0) / values.length : 0,
min: Math.min(...values),
max: Math.max(...values),
items: items
};
});
// Sort by total value descending
categoryStats.sort((a, b) => b.total - a.total);
// Add metadata
const result = {
generated_at: new Date().toISOString(),
total_items: items.length,
total_categories: categoryStats.length,
categories: categoryStats
};
return result;
// Code Node: HTTP Request with Retry Logic
// Mode: Run Once for Each Item
const maxRetries = 3;
const baseDelay = 1000;
async function fetchWithRetry(url, options, attempt = 1) {
try {
const response = await fetch(url, options);
if (!response.ok) {
throw new Error(`HTTP ${response.status}: ${response.statusText}`);
}
return await response.json();
} catch (error) {
if (attempt >= maxRetries) {
throw error;
}
const delay = baseDelay * Math.pow(2, attempt - 1);
await new Promise(resolve => setTimeout(resolve, delay));
return fetchWithRetry(url, options, attempt + 1);
}
}
const item = $input.item.json;
try {
const result = await fetchWithRetry(
,
{
: ,
: {
: ,
:
},
: .(item)
}
);
{
...item,
: result,
:
};
} (error) {
{
...item,
: error.,
:
};
}
# Environment variables for n8n
export N8N_ENCRYPTION_KEY="your-32-char-encryption-key-here"
export N8N_USER_MANAGEMENT_JWT_SECRET="your-jwt-secret"
# Database configuration
export DB_TYPE=postgresdb
export DB_POSTGRESDB_HOST=localhost
export DB_POSTGRESDB_PORT=5432
export DB_POSTGRESDB_DATABASE=n8n
export DB_POSTGRESDB_USER=n8n
export DB_POSTGRESDB_PASSWORD=secure_password
# External service credentials (set in n8n UI)
# These are stored encrypted in the database
{
"name": "Using Credentials Securely",
"nodes": [
{
"parameters": {
"url": "={{ $env.API_BASE_URL }}/users",
"authentication": "predefinedCredentialType",
"nodeCredentialType": "httpHeaderAuth",
"sendHeaders": true,
"headerParameters": {
"parameters": [
{
"name": "X-Custom-Header",
"value": "={{ $env.CUSTOM_HEADER_VALUE }}"
}
]
}
},
"id": "http",
"name": "API Call"