شعار Toolforge Nodejs

Toolforge Nodejs

المجتمع
fuzheado
toolforge-nodejs

Deploy and manage Node.js web services on Wikimedia Toolforge Kubernetes — zero-dependency server patterns, webservice commands, PORT configuration, static file serving with caching headers, npm on NFS, environment variables, logging, and common pitfalls

نظرة عامة

الناشرfuzheado
المستودعWikipedia-AI-Skills
اسم المهارةtoolforge-nodejs
النجوم
27
التفريعات
10
الملفات المرفقة
تعليمات فقط
الترخيصMIT
الروابط
  • تعليمات بصيغة Markdown

    ملف SKILL.md يُحمّله النموذج عند الحاجة، فلا يستهلك توكنات إلا عندما يَرِد طلب ذو صلة فعلًا.

  • تعمل مع أي نموذج لغوي كبير

    مهارات الذكاء الاصطناعي مكتوبة بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا تعمل مع GPT أو Claude أو Gemini أو Grok أو نموذج محلي.

  • مكتفية بذاتها

    كل ما يحتاجه النموذج موجود في التعليمات — لا ملفات إضافية لمزامنتها.

  • مفتوحة المصدر

    نشرها fuzheado على GitHub. اطّلع على المصدر قبل تثبيتها.

التثبيت

ثبّت مهارة الذكاء الاصطناعي Toolforge Nodejs في TypingMind لاستخدامها مع أي نموذج لغوي كبير، أو أضفها إلى وكيل ذكاء اصطناعي آخر يقرأ SKILL.md.

1

التثبيت في TypingMind

يُثبّت TypingMind المهارة مباشرةً من مجلدها على GitHub — فيقرأ SKILL.md، ويجمع ملفات الموارد في حزمة، ويحفظ النتيجة محليًا.

  1. افتح التطبيق وانتقل إلى الإضافات → المهارات.
  2. اختر «تثبيت من GitHub».
  3. الصق رابط مجلد المهارة الموضّح أدناه وأكّد التثبيت.
    https://github.com/fuzheado/Wikipedia-AI-Skills/tree/main/.claude/skills/toolforge-nodejs
  4. فعّل المهارة في كل محادثة تريد إتاحتها فيها.
الإضافات → المهارات → إضافة مهارة → من رابط GitHub، ثم الصق رابط المجلد واضغط على «متابعة».
2

التثبيت في وكيل ذكاء اصطناعي آخر

يمكن لأي وكيل ذكاء اصطناعي يقرأ تنسيق Agent Skills استخدام هذه المهارة — انسخ المجلد إلى مجلد المهارات الخاص بذلك الوكيل.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/fuzheado/Wikipedia-AI-Skills.git /tmp/Wikipedia-AI-Skills
mkdir -p .claude/skills
cp -r /tmp/Wikipedia-AI-Skills/.claude/skills/toolforge-nodejs .claude/skills/toolforge-nodejs
أعد تشغيل Claude Code بعد النسخ ليتعرّف على المهارة الجديدة.

استخدمها في TypingMind

فعّل Toolforge Nodejs في أي محادثة على TypingMind وسيتولى النموذج الباقي. تتضمن مطالبة النظام اسمها ووصفها، وبمجرد ورود طلب ذي صلة، يُحمّل النموذج التعليمات الكاملة تلقائيًا — فلا تحتاج إلى استدعائها يدويًا، ولا تستهلك أي توكنات حتى تُستخدم فعليًا.

يُحمّل النموذج Toolforge Nodejs تلقائيًا بمجرد ورود طلب ذي صلة بها.

تعمل مع أي نموذج ذكاء اصطناعي

مهارات الذكاء الاصطناعي هي تعليمات بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا لا ترتبط Toolforge Nodejs بالنموذج الذي كُتبت له. ثبّتها مرة واحدة في TypingMind واستخدمها مع GPT-5 أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو نموذج محلي تشغّله بنفسك — كل ذلك باستخدام مفاتيح API الخاصة بك.

  • تُحمَّل عند الحاجة فقط

    تتضمن مطالبة النظام الاسم والوصف فقط. وتُجلب التعليمات عند أول طلب ذي صلة، لذا لا تترتب أي تكلفة على المهارة غير المستخدمة.

  • بدّل النماذج أثناء المحادثة

    لأن المهارة تعليمات وليست شيفرة، فإن تغيير النموذج لا يعطّلها — فالنموذج التالي يقرأ ملف SKILL.md نفسه.

تعليمات المهارة

هذا هو محتوى SKILL.md الذي يُحمّله النموذج. اقرأه قبل التثبيت — فالمهارة عبارة عن تعليمات سيتبعها نموذجك.

⚠️ Prerequisites: This skill assumes you have a Toolforge account and can SSH in. See wikimedia-toolforge for account setup, tool creation, and basic SSH configuration.

⚠️ Over SSH, chain with sudo -niu tools.<tool> <cmd>. ssh host "become <tool>; <cmd>" runs <cmd> as you, not the tool — become uses exec, so it replaces the shell before the ; is reached. Passing the command as an argument (become <tool> <cmd>) is fine: the semicolon is the bug, not become. See wikimedia-toolforge §Guardrails & Common Pitfalls.

💡 Zero dependencies by default: Toolforge's NFS filesystem has slow metadata operations — npm install can take minutes. The patterns in this skill use only Node.js built-in modules by default, which means zero npm install, zero package.json, and instant deployment. Add dependencies only when you must.

⚠️ Toolforge Rule #2 — Open Source License Required: All code in the Tools project must be published under an OSI-approved open source license. Add a LICENSE file to your repository before deploying. The absence of a license means default copyright laws apply, which is counter to the principles of the Wikimedia movement. See the full rules.

🔁 Deployment is moving to Toolforge Components (push-to-deploy) + opt-in alerting. For a long-lived tool, know the path: a public repo with a Procfile + a toolforge.yaml component config + a deployment token, so git push builds and deploys. The same config file is where you opt in to the new email alerting service (defaults.alerts.notify: true; opt-in opens October 2026, early access per tool on request). Commands, the supported/unsupported list and pitfalls: SOP 10 in the wikimedia-toolforge skill.


Quick Reference

GoalCommand / Pattern
Deploy a new Node.js serviceSee SOP 1
Choose a runtimenode20 (default), node18 (legacy) — see SOP 1.1
Start/restart a webservicebecome <tool> webservice --backend=kubernetes node20 start
See logsbecome <tool> kubectl logs -f deployment/<tool>
Set environment variablesbecome <tool> toolforge envvars create NAME value
Serve static filesUse readFile() with correct MIME types — see SOP 3
Add npm dependenciesUse a package.json and npm install on the tool's NFS — see SOP 5
Run a cron jobbecome <tool> job schedule node20 --command 'node script.mjs' "0 * * * *"

SOP 1: Bootstrap a Zero-Dependency Node.js Server

The fastest way to get a Node.js web service running on Toolforge — no npm install, no package.json, just a single .mjs file.

1.1 Choose a Runtime

Toolforge offers these Node.js runtime versions:

RuntimeKubernetes ImageStatus
node20docker-registry.tools.wmflabs.org/toolforge-node20-sssd-web:latest✅ Newest Node type this cluster offers (measured 2026-10-22)
node18docker-registry.tools.wmflabs.org/toolforge-node18-sssd-web:latest⚠️ Legacy (available; not for new tools)

Ask the CLI; do not trust a version number in any document, including this one. toolforge webservice --help lists the types the cluster actually offers. On 2026-10-22 that list was node18, node20 — plus bookworm, buildservice, jdk21, perl5.36, perl5.40, php8.2, php8.4, python3.11, python3.13, ruby3.1, ruby3.3, tcl8.6, trixie — and node22 was not among them, although this page had called it the default. A type that does not exist fails late and confusingly: ImagePullBackOff, or a bare 400 with the reason hidden.

The runtime image includes the operating system, Node.js binary, and basic tools. Your code lives on NFS at /data/project/<tool>/.

1.2 Create the Tool (One Time)

Tool creation is web-UI only — the toolforge tools ... command family was removed from the Toolforge CLI in 0.3.x and has no CLI equivalent. Create the tool at https://toolsadmin.wikimedia.org/tools/create.

1.3 Write Your Server

Create a single-file server that uses only Node.js built-in modules. The key detail: Toolforge sets the PORT environment variable — your server must bind to it.

javascript
// server.mjs — Zero-dependency Node.js web service for Toolforge
import { createServer } from 'node:http';
import { readFile } from 'node:fs/promises';
import { existsSync } from 'node:fs';
import { join, extname, resolve as pathResolve, sep as pathSep } from 'node:path';
import { fileURLToPath } from 'node:url';

const __dirname = fileURLToPath(new URL('.', import.meta.url));
const PORT = process.env.PORT || 8765;

// MIME types for static files
const MIME = {
    '.html': 'text/html; charset=utf-8',
    '.css':  'text/css; charset=utf-8',
    '.js':   'application/javascript; charset=utf-8',
    '.mjs':  'application/javascript; charset=utf-8',
    '.json': 'application/json; charset=utf-8',
    '.png':  'image/png',
    '.jpg':  'image/jpeg',
    '.jpeg': 'image/jpeg',
    '.svg':  'image/svg+xml',
};

const server = createServer(async (req, res) => {
    const url = new URL(req.url, `http://localhost:${PORT}`);
    const pathname = url.pathname;

    // API routes
    if (pathname === '/api/hello' && req.method === 'GET') {
        res.writeHead(200, { 'Content-Type': 'application/json' });
        res.end(JSON.stringify({ message: 'Hello from Toolforge!' }));
        return;
    }

    // Static files
    try {
        const filePath = join(__dirname, 'public', pathname === '/' ? 'index.html' : pathname);
        // Security: prevent directory traversal — resolve and verify containment
        // startsWith without trailing sep matches sibling dirs (e.g. my-tool2)
        const safeDir = __dirname + path.sep;
        const resolved = path.resolve(filePath);
        if (!resolved.startsWith(safeDir)) {
            res.writeHead(403); res.end('Forbidden');
            return;
        }
        const data = await readFile(filePath);
        const ext = extname(filePath);
        res.writeHead(200, {
            'Content-Type': MIME[ext] || 'application/octet-stream',
            'Content-Length': data.length,
            // One-week browser cache for static assets
            'Cache-Control': pathname.startsWith('/images/')
                ? 'public, max-age=604800, immutable'
                : 'public, max-age=3600',
        });
        res.end(data);
    } catch {
        res.writeHead(404, { 'Cache-Control': 'no-store' });
        res.end('Not found');
    }
});

server.listen(PORT, () => {
    console.log(`Server running on port ${PORT}`);
});

Naming convention: Use .mjs extension for ES module syntax. If you need require(), use .cjs. For mixed use, a package.json with "type": "module" makes .js files ES modules.

1.4 Deploy

bash
# From your local machine
scp server.mjs <user>@login.toolforge.org:/data/project/my-tool/

# Create a public/ directory for static files
ssh <user>@login.toolforge.org "mkdir -p /data/project/my-tool/public"

# Copy your static files
scp index.html style.css <user>@login.toolforge.org:/data/project/my-tool/public/

# Start the webservice
ssh <user>@login.toolforge.org "become my-tool webservice --backend=kubernetes node20 start"

1.5 Verify

bash
# Check status
ssh <user>@login.toolforge.org "become my-tool webservice --backend=kubernetes node20 status"

# View logs
ssh <user>@login.toolforge.org "become my-tool kubectl logs -f deployment/my-tool"

# Test via curl or browser
curl https://my-tool.toolforge.org/
curl https://my-tool.toolforge.org/api/hello

SOP 2: The PORT Environment Variable

Toolforge's Kubernetes proxy routes incoming requests to your container. It ignores any port you specify in code and expects your server to listen on the port given by the PORT environment variable.

Do This

javascript
const PORT = process.env.PORT || 8765;  // 8765 is a safe local dev default
server.listen(PORT, () => console.log(`Listening on ${PORT}`));

Don't Do This

javascript
server.listen(3000);        // ❌ Toolforge proxy won't find it
server.listen(80);          // ❌ Not running as root
server.listen('8080');      // ❌ PORT is a number, not a string

How It Works

Browser ─→ toolforge.org ─→ Kubernetes Ingress ─→ Pod:PORT
                                                      │
                                                process.env.PORT
                                               (e.g., "31245")

The PORT value is assigned per-pod and is not predictable — always read it from the environment.


SOP 3: Static File Serving with Correct Caching

Cache-Control Headers

Toolforge uses Varnish as an HTTP accelerator in front of Kubernetes. Setting proper cache headers is critical for performance:

Asset TypeRecommendationEffect
Images (panoramas, thumbnails)public, max-age=604800, immutable1 week, never revalidates
JS/CSS (versioned)public, max-age=31536000, immutable1 year, never revalidates
HTML pagespublic, max-age=36001 hour, revalidates
API responsesno-cache (or omit caching)Always revalidates
Error pages (404, 500)no-storeNever caches errors
javascript
function cacheHeaders(pathname) {
    if (pathname.startsWith('/images/')) {
        return 'public, max-age=604800, immutable';  // 1 week
    }
    if (pathname.match(/\.(js|css|mjs)$/)) {
        return 'public, max-age=31536000, immutable'; // 1 year
    }
    if (pathname.startsWith('/api/')) {
        return 'no-cache';  // API responses
    }
    return 'public, max-age=3600';  // HTML and everything else
}

Why immutable Matters

The immutable directive tells the browser it never needs to revalidate the resource before its max-age expires. For panorama images that are cache-busted with ?v= timestamps, this saves a round-trip on every page load. Without it, browsers send If-Modified-Since/If-None-Match headers even for cached assets.

Never Cache Error Responses

javascript
// ❌ Wrong — browser caches the 404 page forever
res.writeHead(404, { 'Cache-Control': 'public, max-age=604800' });
res.end('Not found');

// ✅ Correct — browser never caches error responses
res.writeHead(404, { 'Cache-Control': 'no-store' });
res.end('Not found');

MIME Types Must Be Explicit

Node.js http module doesn't set MIME types automatically. Missing or wrong MIME types cause browsers to refuse to load resources:

javascript
const MIME = {
    '.html': 'text/html; charset=utf-8',
    '.css':  'text/css; charset=utf-8',
    '.js':   'application/javascript; charset=utf-8',
    '.mjs':  'application/javascript; charset=utf-8',
    '.json': 'application/json; charset=utf-8',
    '.png':  'image/png',
    '.jpg':  'image/jpeg',
    '.jpeg': 'image/jpeg',
    '.svg':  'image/svg+xml',
};

// Always set Content-Type and Content-Length
res.writeHead(200, {
    'Content-Type': MIME[ext] || 'application/octet-stream',
    'Content-Length': data.length,
});

SOP 4: Serving Images for WebGL/Pannellum — Never Stream

Pannellum's 360° viewer loads panorama images via XMLHttpRequest and expects a complete, buffered response. Streaming responses (using createReadStream().pipe(res)) causes net::ERR_FAILED 200 (OK) — the browser sees HTTP 200 but can't read the response body as a Blob.

❌ Broken: Streaming

javascript
// DO NOT USE — Pannellum fails with ERR_FAILED
if (stat.size > 1024 * 1024) {
    const { createReadStream } = await import('node:fs');
    createReadStream(filePath).pipe(res);
    return;
}

✅ Correct: Buffering

javascript
// Always read the entire file into memory before responding
const data = await readFile(filePath);
res.writeHead(200, {
    'Content-Type': 'image/jpeg',
    'Content-Length': data.length,
    'Cache-Control': 'public, max-age=604800, immutable',
});
res.end(data);

Why buffering is safe on Toolforge: Your images are on the local NFS mount — reads are fast. The memory cost (a few MB per image) is negligible on Toolforge's Kubernetes pods with 2GB+ RAM limits.

When Streaming IS Safe

Use CaseMethodWhy
<img> tagsStreaming worksBrowser handles streamed images natively
fetch() + response.blob()Streaming worksDifferent internal path than XHR
Audio/video file servingStreaming preferredMedia elements handle buffered seeking
Large file downloadsStreaming preferredLower memory footprint

SOP 5: Adding npm Dependencies

For most Wikimedia tools, the built-in http module is sufficient. When you need external packages:

5.1 Create package.json

json
{
  "name": "my-tool",
  "version": "1.0.0",
  "type": "module",
  "dependencies": {
    "express": "^4.18.0"
  },
  "scripts": {
    "start": "node server.mjs",
    "dev": "node --watch server.mjs"
  }
}

The "type": "module" field makes all .js files use ES module syntax (import/export). Use .cjs extension for files that need CommonJS (require).

5.2 Install on Toolforge

NFS metadata operations are slow. A full npm install can take 2–5 minutes:

bash
become my-tool npm install

5.3 Optimize Install Speed

  • Use .npmrc to avoid audit/lockfile overhead:
    audit=false
    fund=false
    lockfile=false
  • Pin exact versions in package.json to avoid resolution time on every deploy
  • Install locally, copy binary: npm pack on your machine, upload the .tgz, extract on Toolforge
  • Cache node_modules — don't delete it on every deploy. Only re-run npm install when dependencies change.

5.4 When to Use Dependencies vs. Built-In

NeedRecommendation
Simple REST APIBuilt-in http module — zero dependencies
Static file serverBuilt-in http + fs/promises
JSON body parsingBuilt-in JSON.parse() + streaming body collection
URL parsingBuilt-in URL class
Routing (simple)if/else on url.pathname
Routing (complex, 10+ routes)express or fastify
SQLite databasebetter-sqlite3
WebSocketws package
TemplatingBuilt-in template literals or ejs

Rule of thumb: Start with zero dependencies. Add packages only when the built-in solution becomes unwieldy.


SOP 6: Environment Variables and Secrets

Setting Variables

bash
# Set variables — these persist across restarts
become my-tool toolforge envvars create API_KEY "sk-abc123"
become my-tool toolforge envvars create NODE_ENV "production"
become my-tool toolforge envvars create LOG_LEVEL "info"

# List all variables
become my-tool toolforge envvars list

# Remove a variable
become my-tool toolforge envvars delete API_KEY

Reading Variables in Code

javascript
const apiKey = process.env.API_KEY;
if (!apiKey) {
    console.error('API_KEY not set — some features will be unavailable');
}

Caveats

  • Variables are set per-tool, not per-webservice-instance. All pods for the same tool share the same environment.
  • Restart the webservice after changing env vars — they're loaded at process start, not dynamically:
    bash
    become my-tool webservice --backend=kubernetes node20 restart
  • Never hardcode secrets in source files committed to version control. Always use toolforge envvars create.

SOP 7: Logging and Debugging

Kubernetes Logs

bash
# Tail logs from the current pod
become my-tool kubectl logs -f deployment/my-tool

# Last N lines
become my-tool kubectl logs --tail=100 deployment/my-tool

# Follow a specific pod (useful with multiple replicas)
become my-tool kubectl logs -f pod/my-tool-7d8f9e2a4-x3y7z

# Search for errors
become my-tool kubectl logs deployment/my-tool | grep -i error

Structured Logging (Zero-Dependency)

javascript
function log(level, message, data = {}) {
    const entry = {
        timestamp: new Date().toISOString(),
        level,
        message,
        ...data,
    };
    // Write to stdout — Kubernetes collects this
    process.stdout.write(JSON.stringify(entry) + '\n');
}

// Usage
log('info', 'Server starting', { port: PORT });
log('error', 'Failed to resolve file', { file: filename, error: e.message });

Common Issues

SymptomLikely CauseFix
Connection refusedServer not listening on PORTCheck process.env.PORT in code
CrashLoopBackOff in statusServer crashes on startupRun kubectl logs to see the error
Crashloop whose log is cd: //www/js: No such file or directoryThe pod was created with HOME=/ instead of the tool home, so any app that builds a path from $HOME dies instantly. A platform-side environment injection failed; nothing in your code or on NFS is wrongRetrying never helps: a container restart reuses the pod's frozen environment. become <tool> webservice --backend=kubernetes node20 restart creates a new pod, which is the fix. In your own start path prefer $PWD over $HOME — the pod's workingDir is already the tool home. Full write-up: https://github.com/fuzheado/wikibento/blob/main/docs/research/TOOLFORGE-INCIDENT-2026-10-22.md
ImagePullBackOffRuntime image not foundCheck runtime name (node20 not nodejs22)
Slow first requestCold start + NFS metadataUse a keepalive or health check endpoint
ERR_FAILED 200 (OK)Streamed response to PannellumUse readFile() instead of streaming
404 for existing filesPath resolution wrongLog filePath and check directory traversal

Health Check Endpoint

Toolforge's Kubernetes expects the server to be responsive. Add a lightweight health check:

javascript
server.on('listening', () => {
    // Signal to Kubernetes that the server is ready
    console.log('READY');
});

SOP 8: Cron Jobs

For batch processing, periodic syncs, or scheduled maintenance:

bash
# Run a script every hour
become my-tool job schedule node20 \
    --command 'node /data/project/my-tool/cron/cleanup.mjs' \
    --no-filelog \
    "0 * * * *"

# Run once
become my-tool job submit node20 \
    --command 'node /data/project/my-tool/cron/backfill.mjs'

Cron Job Script Template

javascript
// cron/cleanup.mjs — Scheduled script (no HTTP server needed)
import { readdir, unlink, stat } from 'node:fs/promises';
import { join } from 'node:path';

const CACHE_DIR = '/data/project/my-tool/images';
const MAX_AGE_DAYS = 7;

async function cleanup() {
    const files = await readdir(CACHE_DIR);
    const now = Date.now();
    let removed = 0;

    for (const file of files) {
        const filePath = join(CACHE_DIR, file);
        const stats = await stat(filePath);
        const ageDays = (now - stats.atimeMs) / (1000 * 60 * 60 * 24);
        if (ageDays > MAX_AGE_DAYS) {
            await unlink(filePath);
            removed++;
        }
    }

    console.log(`Cleanup: removed ${removed} files (threshold: ${MAX_AGE_DAYS} days)`);
}

cleanup().catch(err => {
    console.error('Cleanup failed:', err);
    process.exit(1);
});

SOP 9: Restarting and Updating

Restart (zero-downtime)

bash
become my-tool webservice --backend=kubernetes node20 restart

The Kubernetes deployment performs a rolling restart — no downtime as long as your server starts quickly.

Update Code

bash
# Upload new version
scp server.mjs <user>@login.toolforge.org:/data/project/my-tool/

# Restart to pick up changes
ssh <user>@login.toolforge.org "become my-tool webservice --backend=kubernetes node20 restart"

Stop

bash
become my-tool webservice --backend=kubernetes node20 stop

Reference: Quick Command Cheat Sheet

bash
# === Lifecycle ===
become my-tool webservice --backend=kubernetes node20 start
become my-tool webservice --backend=kubernetes node20 stop
become my-tool webservice --backend=kubernetes node20 restart
become my-tool webservice --backend=kubernetes node20 status

# === Logs ===
become my-tool kubectl logs -f deployment/my-tool
become my-tool kubectl logs --tail=100 deployment/my-tool

# === File Transfer (from local machine) ===
scp server.mjs <user>@login.toolforge.org:/data/project/my-tool/
scp -r public/ <user>@login.toolforge.org:/data/project/my-tool/

# === Environment ===
become my-tool toolforge envvars create KEY value
become my-tool toolforge envvars list
become my-tool toolforge envvars delete KEY

# === Scheduled Jobs ===
become my-tool job schedule node20 --command 'node script.mjs' "0 * * * *"
become my-tool job submit node20 --command 'node script.mjs'

# === Direct Shell ===
become my-tool

Reference: Common Pitfalls

PitfallWhy It HappensPrevention
Missing PORTHardcoded port in codeAlways use `process.env.PORT
Streaming to PannellumcreateReadStream().pipe(res) causes ERR_FAILEDAlways use readFile() + res.end() for images
No Cache-ControlMissing headers = re-download on every page loadAlways set cache headers for static assets
Cached 404 pages404 served with Cache-Control: publicUse no-store for error responses
Slow npm installNFS metadata operations are slowMinimize dependencies; use .npmrc to skip audit
Missing MIME typeContent-Type not set, browser refuses to loadExplicit MIME map for all file extensions
Traversal vulnerabilityjoin(dir, pathname) can escape the rootAlways path.resolve() and check startsWith(dir + path.sep)
Crash on startupUnhandled promise rejection in createServerWrap async handlers in try/catch
Stale image cacheCommons file overwritten, old URL still cachedAppend ?v={timestamp} to cached image URLs
CORS errorsupload.wikimedia.org has no CORS headersProxy images through your own server

See Also

  • wikimedia-toolforge — Account setup, tool creation, SSH, Kubernetes pods, cron jobs, database access
    • SOP 9: Frontend Assets (Privacy-Preserving CDN) — Must-load JS/CSS from tools-static.wmflabs.org/cdnjs/ instead of external CDNs
  • commons-file-resolution — Resolving File: references to HTTP URLs, caching images for same-origin serving
  • wikimedia-api-access — User-Agent, rate limiting, error handling
  • wikimedia-commons-thumbnails — Thumbnail URL generation and format conversion
  • wikimedia-security-and-privacy — CDN privacy risks, data minimization, and third-party script policies
  • wikimedia-codex — Codex design system (Vue 3 + CSS-only components, tokens, icons) for tool frontends

الأسئلة الشائعة

ماذا تفعل مهارة الذكاء الاصطناعي Toolforge Nodejs؟

Deploy and manage Node.js web services on Wikimedia Toolforge Kubernetes — zero-dependency server patterns, webservice commands, PORT configuration, static file serving with caching headers, npm on NFS, environment variables, logging, and common pitfalls

لماذا تستخدم Toolforge Nodejs على TypingMind؟

لأنك تثبّتها مرة واحدة وتستخدمها مع أي نموذج. مهارة Toolforge Nodejs عبارة عن نص Markdown وليست شيفرة خاصة بمزود بعينه، لذا تعمل المهارة نفسها مع GPT-5 أو Claude أو Gemini أو Grok أو نموذج محلي، ويمكنك تبديل النموذج أثناء المحادثة دون تعطّل المهارة. يعمل TypingMind بمفاتيح API الخاصة بك، فتدفع للمزودين مباشرةً بدلًا من اشتراك لكل مقعد، وتبقى مهاراتك ومحادثاتك في مساحة التخزين الخاصة بك.

كيف أثبّت Toolforge Nodejs في TypingMind؟

افتح الإضافات → المهارات → التثبيت من GitHub في TypingMind والصق https://github.com/fuzheado/Wikipedia-AI-Skills/tree/main/.claude/skills/toolforge-nodejs. يقرأ TypingMind ملف SKILL.md الخاص بها ويثبّتها كمهارة يمكنك تفعيلها لكل محادثة على حدة.

ما نماذج الذكاء الاصطناعي التي يمكنها استخدام Toolforge Nodejs؟

أي نموذج تربطه في TypingMind. مهارات الذكاء الاصطناعي عبارة عن تعليمات Markdown وليست شيفرة خاصة بمزود بعينه، لذا يمكن لكل من GPT وClaude وGemini وGrok والنماذج المحلية تحميل هذه المهارة عندما يتوافق الطلب معها.

كم نموذج ذكاء اصطناعي يمكنني استخدامه مع Toolforge Nodejs؟

أي عدد تريده. ما دام النموذج يدعم المهارات، يمكنك استخدام Toolforge Nodejs معه، سواء كان GPT أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو غيرها، وكل ذلك على TypingMind باستخدام مفاتيح API الخاصة بك.

هل مهارة الذكاء الاصطناعي Toolforge Nodejs مجانية؟

نعم. نشرها fuzheado على GitHub بموجب ترخيص MIT. لا تدفع إلا لمزود الذكاء الاصطناعي الخاص بك مقابل التوكنات التي تستخدمها.

ما هي مهارات الذكاء الاصطناعي؟

مهارة الذكاء الاصطناعي حزمة تعليمات قابلة لإعادة الاستخدام تعلّم نموذج الذكاء الاصطناعي كيفية تنفيذ مهمة محددة. وتتبع تنسيق Agent Skills المفتوح: ملف SKILL.md يتضمن اسمًا ووصفًا، إلى جانب أي نصوص برمجية أو قوالب أو ملفات مرجعية قد يحتاج إليها النموذج. لا يقرأ النموذج التعليمات إلا عندما يتوافق طلبك مع المهارة، لذا لا تترتب على المهارة المثبتة أي تكلفة حتى تُستخدم.

كيف تختلف مهارات الذكاء الاصطناعي عن الإضافات أو موصلات MCP؟

تمنح الإضافة أو موصل MCP النموذج أدوات جديدة يمكنه استدعاؤها، وهي شيفرة تُنفَّذ في مكان ما وتُرجع نتيجة. أما مهارة الذكاء الاصطناعي فتزوّد النموذج بالمعرفة ومنهجية العمل: كيفية التعامل مع مهمة، والخطوات التي ينبغي اتباعها، وما ينبغي أن تكون عليه المخرجات الجيدة. المهارات عبارة عن نصوص Markdown، لذا لا تحتاج إلى خادم أو مفتاح API أو بيئة تشغيل، وتعمل مع أي نموذج.

عرض الكل

أنشئ مساحة عملك للذكاء الاصطناعي الآن

اشترك في نشرتنا البريدية لتصلك أخبار الميزات الجديدة والهدايا القادمة 👇