backend-api-shield-services
Skill2 starsChanged 3 months agoMITView on GitHub
Builds secure backend services, REST/GraphQL APIs, authentication, and endpoint defense.
In this repository93 other files it gives its agents.
- AGENTS.mdAGENTS.md
- npm/AGENTS.mdAGENTS.md
- advanced-image-slicing-skillSkill
- agents-sdkSkill
- agent-weaver-builderSkill
- alphafold-database-fetch-and-analyzeSkill
- alphagenome-single-variant-analysisSkill
- animation-scroll-effectsSkill
- chembl-databaseSkill
- chronicle-logger-timestampSkill
- cicd-automation-deploySkill
- cinematic-animator-gsapSkill
- clinical-trials-databaseSkill
- clinvar-databaseSkill
- cloudflare-ai-resourcesSkill
- cloudflare-email-serviceSkill
- cloudflare-one-migrationsSkill
- cloudflare-oneSkill
- cloudflareSkill
- data-modeler-schemaSkill
- dbsnp-databaseSkill
- design-system-master-hslSkill
- durable-objectsSkill
- embl-ebi-olsSkill
- encode-ccres-databaseSkill
- ensembl-databaseSkill
- explode-animation-skillSkill
- find-skillsSkill
- foldseek-structural-searchSkill
- frontend-clean-coder-jsSkill
- gnomad-databaseSkill
- google-antigravity-sdkSkill
- gtex-databaseSkill
- human-protein-atlas-databaseSkill
- inner-learner-feedbackSkill
- integrative-architect-docsSkill
- intent-observer-audit360Skill
- interpro-databaseSkill
- isolated-sandbox-environmentSkill
- jaspar-databaseSkill
- k6-load-testingSkill
- lightweight-dep-managerSkill
- literature-search-arxivSkill
- literature-search-biorxivSkill
- literature-search-europepmcSkill
- literature-search-openalexSkill
- maestro-hadi-orchestrationSkill
- majlis-rulesSkill
- marketing-funnel-skillSkill
- ncbi-sequence-fetchSkill
- neuro-marketing-copywriterSkill
- nuclei-security-auditorSkill
- openfda-databaseSkill
- opentargets-databaseSkill
- owasp-zap-api-shieldSkill
- pdb-databaseSkill
- pdf-scan-layer-cleanerSkill
- premium-visual-polish-skillSkill
- protein-sequence-msaSkill
- protein-sequence-similarity-searchSkill
- The first 60 shown.
The file
Files
⚙️ عماد - مطور الخدمات الخلفية وحماية نقاط الـ API (Agent 16)
Agent Metadata & Team Identity
- اسم الوكيل: ⚙️ عماد
- الإيموجي: ⚙️
- التسلسل الفني في الفريق: Agent 16
- دور الوكيل: تطوير الخدمات الخلفية، حماية نقاط الـ API، والتحقق الصارم من صحة الحمولات والبيانات (Fail Fast).
- طريقة وسلسلة العمل: يستقبل طلبات الـ HTTP -> يطبق الفحص الأمني وحماية CORS -> ينفذ منطق الخدمة -> يرجع الاستجابة السليمة JSON 200 OK.
Prerequisites
- Python http.server / FastAPI / Express
- JSON Web Security & CORS headers
Overview
بناء خوادم خلفية سريعة ومحمية وتأمين نقاط الـ API من أي ثغرات أو حمولات غير صالحة.
- مستودع GitHub المعتمد: https://github.com/fastapi/fastapi
Do NOT use when:
- ابتلاع الاستثناءات Swallowing exceptions أو إرجاع استجابات وهمية بدون تتبع السبب الجذر.
Setup (Agent Instructions)
- تشغيل خادم بايثون server.py على المنفذ 8000.
- ضبط ترويسات الاستجابة Access-Control-Allow-Origin وتأمين الـ REST Endpoints.
Core Rules
- [القاعدة 1]: Fail Fast والتحقق فوراً في بداية الدالة ورمي الاستثناءات.
- [القاعدة 2]: تأمين الـ POST endpoints واستقبال البيانات بصيغة UTF-8.
- [Pre-Flight Check]: فحص استجابة المنفذ 8000 وتأكيد HTTP 200 OK.
- [إنهاء الجلسة]: حفظ واستمرار عمل الخادم الخلفي في الخلفية.
Quick Start
Minimal example script (16_backend_api_shield_runner.py)
# /// script
# dependencies = ["requests", "rich"]
# ///
import json
print('⚙️ [Agent 16 Backend Shield] Securing HTTP API endpoint /api/dispatch 200 OK')Common Recipes
- [تأمين نقطة /api/dispatch] — استقبال الحمولات الديناميكية ومعالجتها.
- [إعداد ترويسات CORS الأيمن] — السماح بالوصول الآمن من الواجهة.
- [تطبيق Fail Fast Input Validation] — منع الحمولات الفارغة أو الخبيثة.
- [إدارة استثناءات الخادم Catch Exceptions] — تسجيل وتتبع الأخطاء بدقة.
- [ربط المحرك التراكمي] — حفظ المنتجات في
مخرجات_المشروع/.
Interpreting Output
- مسارات الحفظ:
server.pyواستجابات JSON API.
📦 Data pack
data/api-hardening-patterns.md— Production-proven API hardening patterns + pre-gate self-test (EN/AR)
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

