Skills n8n-code-python
๐Ÿ“ฆ

n8n-code-python

Content revision r2 Safe โš™๏ธ External commands๐ŸŒ Network access

Build Reliable Python Code Nodes for n8n

Python Code nodes require n8n-specific data access and return formats. This skill provides patterns for transformations, validation, aggregation, webhooks, and standard-library tasks.

Supports: Claude Codex Code(CC)
๐Ÿฅ‰ 77 Bronze

Install with my Agent

Copy this request to your Agent. It includes the canonical Skill page and manifest.

Agent request
Review the Skillstore skill "n8n-code-python" from https://skillstore.io/skills/sickn33-n8n-code-python.md and its manifest at https://skillstore.io/api/skills/sickn33-n8n-code-python/manifest. Verify the artifact. You may proceed after verification, subject to the environment's own policy.

Your Agent should still show its plan and request any confirmation required by the security policy.

Agent-readable resources

Use these links when an AI agent, crawler, or script needs clean context instead of reading the full page.

Test it

Using "n8n-code-python". Normalize webhook contacts and mark records that lack an email address.

Expected outcome:

A batch transformation reads the webhook body, standardizes contact fields, and attaches validation messages to incomplete records.

Using "n8n-code-python". Calculate sales totals and averages for active records.

Expected outcome:

  • Inactive records are excluded before calculation.
  • The result includes total sales, active record count, and average sales.
  • Empty input produces zero values without division errors.

Using "n8n-code-python". Explain why a Python Code node fails after importing requests.

Expected outcome:

The review identifies an unsupported external package and recommends an HTTP Request node before the Python transformation.

Security Audit

Safe
v5 โ€ข 8/4/2026 Open versioned report

All 91 static findings are false positives caused by Markdown backticks, documentation links, and benign Python examples. The skill contains no command invocation, suspicious network behavior, obfuscated payload, reconnaissance, or prompt injection.

1
Files scanned
756
Lines analyzed
0
Review items
0
False positives ignored
No confirmed security findings were detected by the latest completed static and semantic audit. This does not prove the skill has no side effects.
Audited by: codex View Audit History โ†’
Share & cite this report

Share the versioned assessment report, neutral badge, embed card, and citations. Skillstore reports evidence without deciding whether this Skill is safe.

Open versioned report
Security Assessment

Copy report link

https://skillstore.io/skills/sickn33-n8n-code-python/audits/5?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_report

Markdown badge

[![Skillstore security assessment](https://skillstore.io/badges/skills/sickn33-n8n-code-python/security.svg)](https://skillstore.io/skills/sickn33-n8n-code-python?utm_source=security_passport_badge)

HTML badge

<a href="https://skillstore.io/skills/sickn33-n8n-code-python?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/sickn33-n8n-code-python/security.svg" alt="Skillstore security assessment" loading="lazy"></a>

Embed card

<iframe src="https://skillstore.io/embed/skills/sickn33-n8n-code-python.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>
Academic citations (APA ยท BibTeX ยท CFF)

APA citation

sickn33. (2026). n8n-code-python security audit report (audit version 5) [Author version unspecified]. Skillstore. https://skillstore.io/skills/sickn33-n8n-code-python/audits/5

BibTeX citation

@techreport{sickn33-sickn33-n8n-code-python-2026, author = {sickn33}, title = {n8n-code-python security audit report (audit version 5)}, institution = {Skillstore}, year = {2026}, number = {5}, url = {https://skillstore.io/skills/sickn33-n8n-code-python/audits/5}, note = {Author version unspecified} }

CITATION.cff

cff-version: 1.2.0 message: "If you use this Skill, cite its author and this versioned security audit report." title: "n8n-code-python security audit report (audit version 5)" version: "unspecified" type: report authors: - name: "sickn33" date-released: "2026-08-04" url: "https://skillstore.io/skills/sickn33-n8n-code-python/audits/5" identifiers: - type: other value: "skillstore:sickn33-n8n-code-python:audit:5" description: "Skillstore immutable audit report identifier"

Skillstore Score

Why this score Evidence Confidence: High
55
Architecture
85
Maintainability
87
Content
70
Community
74
Spec Compliance

What You Can Build

Transform Workflow Items

Create a Code node that cleans, maps, and enriches incoming records while preserving n8n output structure.

Summarize Operational Data

Filter records and calculate totals, counts, averages, or basic statistics without external packages.

Repair Failing Code Nodes

Diagnose input access, webhook nesting, missing keys, unsupported imports, and invalid return formats.

Try These Prompts

Create a Basic Transformation
Write an n8n Python Code node that reads all items, maps [fields], adds [new field], and returns the required structure.
Normalize Webhook Data
Create Python for an n8n webhook workflow. Read fields from the body safely, normalize [fields], and report missing values.
Validate and Aggregate Records
Build an n8n Python Code node that validates [rules], separates invalid records, and calculates [metrics] from valid records.
Design an Advanced Processing Step
Review this n8n processing requirement: [requirement]. Select the execution mode, design robust Python logic, and explain limitations and edge cases.

Best Practices

  • Test with empty, incomplete, and representative input before deploying the workflow.
  • Use safe dictionary access and explicit defaults for optional fields.
  • Choose all-items mode for batch work and return a consistent n8n item structure.

Avoid

  • Do not import external packages that the n8n Python runtime does not provide.
  • Do not return plain values or dictionaries without the required item wrapper.
  • Do not assume webhook fields exist at the top level or are always present.

Frequently Asked Questions

Which n8n Python mode should I use?
Use Python Beta for n8n helpers. Use Native mode only when pure Python variables meet the requirement.
Can the Code node import pandas or requests?
No. The documented runtime supports standard-library modules, so use dedicated n8n nodes for HTTP or specialized processing.
How should Python Code nodes return data?
Return a list of n8n items. Each item must contain a json field holding its output data.
Where is webhook payload data located?
Webhook payload fields are normally under the body field. Use safe access because fields may be absent.
Can this skill process multiple input items?
Yes. It covers batch processing, filtering, transformations, aggregations, and per-item execution.
Does the generated code still need testing?
Yes. Test it with actual node data, edge cases, and the Python runtime available in your n8n installation.

Developer Details

Author

sickn33

License

MIT

Skillstore revision

r2

Version notice

The author did not declare a version.

Ref

81e05e636292629114b76cbb3922fbe57672fc02

Maintenance freshness

8/5/2026

Usage

10 downloads ยท 176 views

File structure

๐Ÿ“„ SKILL.md

More from sickn33

View all
View all