شعار Sp Coding Agent

Sp Coding Agent

المجتمع
cuongpt083
sp-coding-agent

Use when a coding task is vague or under-specified. Extracts missing context across 9 code-native categories before the agent executes file changes. Designed for OpenAI Codex, Anthropic Claude Code, and Google Gemini Code Assist.

نظرة عامة

الناشرcuongpt083
المستودعsmart-pole-skill
اسم المهارةsp-coding-agent
النجوم
31
التفريعات
15
الملفات المرفقة
6
الترخيصApache-2.0
الروابط
  • تعليمات بصيغة Markdown

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

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

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

  • الملفات المرفقة: 6

    نصوص برمجية وقوالب ومراجع يمكن للنموذج قراءتها أثناء عمله. الملفات للقراءة فقط ولا تُنفّذ أبدًا.

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

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

التثبيت

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

1

التثبيت في TypingMind

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

  1. افتح التطبيق وانتقل إلى الإضافات → المهارات.
  2. اختر «تثبيت من GitHub».
  3. الصق رابط مجلد المهارة الموضّح أدناه وأكّد التثبيت.
    https://github.com/cuongpt083/smart-pole-skill/tree/main/skills/sp-coding-agent
  4. فعّل المهارة في كل محادثة تريد إتاحتها فيها.
الإضافات → المهارات → إضافة مهارة → من رابط GitHub، ثم الصق رابط المجلد واضغط على «متابعة».
2

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

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

Claude Code — .claude/skills
git clone --depth 1 https://github.com/cuongpt083/smart-pole-skill.git /tmp/smart-pole-skill
mkdir -p .claude/skills
cp -r /tmp/smart-pole-skill/skills/sp-coding-agent .claude/skills/sp-coding-agent
أعد تشغيل Claude Code بعد النسخ ليتعرّف على المهارة الجديدة.

استخدمها في TypingMind

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

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

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

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

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

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

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

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

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

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

SMART POLE Coding Agent Skill

This Skill implements the SMART POLE framework adapted for AI Coding Agents. Unlike the chatbot versions (Instructor/Enforcer), this skill operates on codebases — scanning project files, extracting context automatically, and ensuring the agent has enough information before writing code.


How to Load This Skill

  1. Set system prompt: Load references/system-prompt.md as the agent's system prompt (e.g., paste into AGENTS.md, .claude/system_prompt.md, or the agent's system role configuration).
  2. Provide reference files: Make references/logic.md, references/overlap-rules.md, and references/coding-agent-categories.md available in the agent's context or knowledge base.
  3. Invoke: Give the agent a vague or specific coding task. The agent will ORIENT (scan the codebase), CLASSIFY the task type, EXTRACT SP-categories, and check execution gates before touching any file.

Reference Files

FilePurpose
references/system-prompt.md🔴 Required — Full Coding Agent system prompt (v4.0). Load as the agent's system instructions.
references/logic.mdFramework logic: category definitions, weighted scoring, task-type classification, generic-to-coding task mapping.
references/overlap-rules.mdAtom overlap rules, conflict detection, Functional Gravity principle, and the One Atom One Slot rule.
references/coding-agent-categories.mdCode-native sub-dimensions for all 9 SP-categories with auto-detection sources and hard-stop gate definitions.

When to Use This Skill

  • A user gives a vague coding task ("fix the login bug", "add pagination")
  • Before an agent starts multi-file code changes
  • When a task involves unfamiliar parts of a codebase
  • Migration or refactoring tasks where scope control is critical

How It Works

  1. ORIENT: Agent scans project root (README.md, AGENTS.md, package.json, Dockerfile, etc.)
  2. CLASSIFY: Determine task type (Bug Fix / Feature / Refactor / Migration / Infra)
  3. EXTRACT: Map request to 9 code-native SP-categories
  4. DETECT FLAWS: Identify missing context, overlaps, and conflicts; ask user if critical
  5. PLAN: Create implementation plan with file-level scope
  6. EXECUTE: Apply file changes within approved scope
  7. VERIFY: Run tests, lint, type-check; self-heal on failures

The 9 Code-Native Categories

AbbrevCategoryCode MeaningPriority
SStyleCode standards, linting, architecture pattern🟢 Auto-detect
MMasteryDeveloper expertise level — split into Domain vs Task (see below)🟡 Contextualizer
AAimDefinition of Done, acceptance criteria, success metric🔴 CORE
RResourceAllowed/forbidden deps, API quotas, team contacts, internal docs🟡 Contextualizer
TTimeDeadline, urgency level (hotfix vs long-term), sprint constraints🟢 Accelerator
PPeopleTeam conventions, reviewer persona, implicit values & preferences🟡 Contextualizer
OOutlineAuthorized file scope, folder boundaries, what NOT to touch🔴 CORE
LLocaleRuntime ecosystem, language/framework version, legal/infra constraints🟡/🔴 CONDITIONAL
EExampleReference code snippets, similar PRs, anti-pattern stories🟡/🟢 CONDITIONAL

Category Deep-Dives (SP-Flaw Prevention)

⏱️ T — Time: Urgency Only, Not Quality

T answers: "How much time do I have?" — deadline, sprint slot, hotfix vs planned refactor.

⚠️ T-Flaw (Category Overlap): Do NOT put acceptance criteria or content depth requirements inside T.

  • ❌ Wrong: T: "Must be thorough enough to not need follow-up" ← this is an A-atom
  • ✅ Right: T: "Hotfix — must ship in 2 hours" / T: "Non-urgent — next sprint"

Quality gates and success criteria belong in Aim (A) or Outline (O), not Time.


👥 P — People: Make Implicit Traits Explicit

P answers: "Who is involved and what are their hidden assumptions?"

Beyond team conventions, always surface:

  • Reviewer Persona: Does the reviewer prioritize security over speed? Hate over-engineered abstractions?
  • Implicit Values: Prefers functional style? Allergic to ORMs? Values minimal diffs?
  • Psychological traits: Team culture (consensus-driven vs individual autonomy), risk tolerance

⚠️ P-Flaw (Implicit People): Do NOT leave personality traits and values implicit — the agent will guess wrong.

  • ❌ Wrong: Omitting that the team hates any types in TypeScript
  • ✅ Right: P: "Reviewer flags every use of 'any' in TypeScript — use strict types always"

🎓 M — Mastery: Always Split Domain vs Task

M answers: "What does the developer know — and in which dimension?"

Always decompose Mastery into two parts:

DimensionMeaningExample
M-DomainExpertise in tech stack / roleSenior React, Junior DevOps
M-TaskExperience with this specific task typeNever integrated Stripe before, First time with WebSocket

⚠️ M-Flaw (Mastery Scope): Missing the gap between Domain and Task mastery causes the agent to pitch solutions that are technically fluent but practically inappropriate.

  • ❌ Wrong: M: "Senior Developer" ← domain only, no task dimension
  • ✅ Right: M-Domain: "Senior React" | M-Task: "Novice — first time implementing OAuth2 flow" → agent uses familiar React patterns but explains OAuth2 step-by-step

🧰 R — Resource: Tools + People + Data

R answers: "What weapons do I have — and what is forbidden?"

Resource includes three dimensions, not just software:

DimensionExamples
ToolsAllowed libs/frameworks, CI/CD pipeline, dev environment
People / NetworkTeam members who can review, external consultants, on-call SMEs
Data / DocsInternal wikis, API docs, log access (/var/log/auth.log), Sentry

⚠️ R-Flaw (Resource Underutilization): Listing only software tools leaves the agent unable to suggest "ask the security team" or "check the Confluence runbook."

  • ❌ Wrong: R: "Jira, Notion" ← tools only
  • ✅ Right: R-Tools: "Jira" | R-Network: "Security team available for review" | R-Data: "Sentry logs + Redis CLI access"

Also supply Negative Atoms (what is forbidden):

R-Forbidden: "No new npm deps without approval, no changes to DB schema"


📌 E — Example: The Anchor Atom

E answers: "What should the output look like — concretely?"

In coding context, a Gold Standard E-atom is a matched pair:

E-atom TypeWhat it looks like
Code snippetBefore/after code block showing the pattern to follow
Similar PRLink or description of a past PR that solved a comparable bug
Input/Output pairExpected test case: input state → expected behavior
Anti-example (Story)"Last time we did X this way, it broke Y — avoid this pattern"

⚠️ E-Flaw (Missing Anchor): Without an Example atom, the agent mimics its training data defaults, not your codebase conventions.

  • ❌ Weak: E: "Make it look clean" ← too vague, gives agent no anchor
  • ✅ Gold: E: "Follow the pattern in auth_service.py:L45–80 — token invalidation before session update" or E: "This Sentry trace shows the failure chain: A→B→C"

Always ask: "Is there a similar PR, a log trace, or a code section I want the agent to mimic?"


Auto-Extraction Sources

Source FileSP-Categories Extracted
.eslintrc / ruff.tomlS (Style)
package.json / pyproject.tomlR (Resource), L (Locale)
Dockerfile / docker-compose.ymlL (Locale), R (Resource)
AGENTS.md / SKILL.mdP (People), S (Style)
CI/CD configs (.github/workflows/)R (Resource), A (Aim quality gates)

Coding Task Classification

Task TypePrimary SP-catsAgent Behavior
Bug FixA, E, OMinimal change + regression test
FeatureA, O, RPlan → implement → test
RefactorO, E, PPreserve behavior, improve structure
MigrationL, R, TIncremental, backward compatible
InfraL, R, AInfrastructure as Code, idempotent

Task Taxonomy Mapping (Generic → Coding)

Use this mapping to bridge generic SMART POLE task types in references/logic.md with coding-agent task types.

Generic Task Type (references/logic.md)Coding Task Type(s)Default Interpretation
DeterministicBug Fix, RefactorBehavior is constrained; prioritize reproducibility and regression tests
GenerativeFeatureNew capability; prioritize clear DoD and explicit scope boundaries
AdvisoryRefactor, Migration, InfraArchitecture/process guidance; convert advice into testable acceptance criteria before coding
DiscoveryFeature (spike), Migration (assessment)Exploration is allowed, but execution stays minimal and reversible
ComplianceInfra, Migration, Bug FixRegulatory/security constraints are first-class acceptance criteria

Execution Gates (Hard Stops)

Do not execute code changes until all hard-stop gates pass:

  1. Gate A (Aim): At least one testable acceptance criterion exists.
  2. Gate O (Outline): Authorized scope is explicit (or defaults to minimal scope) and forbidden scope is respected.
  3. Gate Conflict: All SP-conflict items are resolved by user decision.
  4. Gate Overlap: Apply One Atom, One Slot from references/overlap-rules.md; no double-counted atoms.
  5. Gate Score: Weighted readiness score is >= 67% of the applicable max score (per references/logic.md task-type weighting).

If any gate fails:

  • Stop before EXECUTE
  • Ask targeted clarification questions
  • Re-plan only after user confirmation

Worked Example: Bug Fix Context Extraction

User request: "Fix the login bug — users can't login after password reset"

SP-catAtomWhy here, not elsewhere
SAuto-detect from .eslintrcStyle from project config
M-DomainSenior Backend DeveloperTech stack expertise
M-TaskNovice — unfamiliar with this legacy auth systemTask-specific gap
ALogin succeeds with new password; old session invalidated; unit tests passSuccess criteria → not T
R-ToolsRedis CLI access, Sentry error tracesConcrete toolbox
R-NetworkSecurity team available on Slack for reviewHuman resource
THotfix — must ship within 2 hoursUrgency only — not quality
PReviewer prioritizes security over speed; avoids over-optimization at hotfix stageExplicit reviewer values
OOnly modify auth_service.py and password_controller.pyScope boundary
LPython 3.11, Django 4.2, Redis 7Runtime ecosystem
ESentry trace shows: PasswordReset→UpdateDB→[FAIL: session not invalidated]→LoginConcrete anchor

🔍 SP-flaw check: "Write unit tests" is an A-atom (acceptance criterion), NOT a T-atom (time/urgency).

Key Differences from Chatbot Versions

AspectInstructor/EnforcerCoding Agent
OutputMaster Prompt textWorking code + passing tests
Reasoning visibilityPrompt-analysis orientedConcise decisions tied to files/tests (no explicit CoT requirement)
VerificationUser reviews promptAgent runs tests automatically
ContextConversation onlyCodebase + configs + file system
Self-healingN/AAuto-fix on test failure (max 3 attempts)

Optional: Integration with Other Skills

This skill works best as a pre-flight layer in any coding agent workflow, ensuring sufficient context before execution begins. Pair with project-specific AGENTS.md or workflow files.

الملفات المرفقة

يقرأ النموذج هذه الملفات عند الحاجة أثناء تحميل المهارة. وهي متاحة للقراءة ولا تُنفّذ أبدًا.

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

ماذا تفعل مهارة الذكاء الاصطناعي Sp Coding Agent؟

Use when a coding task is vague or under-specified. Extracts missing context across 9 code-native categories before the agent executes file changes. Designed for OpenAI Codex, Anthropic Claude Code, and Google Gemini Code Assist.

لماذا تستخدم Sp Coding Agent على TypingMind؟

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

كيف أثبّت Sp Coding Agent في TypingMind؟

افتح الإضافات → المهارات → التثبيت من GitHub في TypingMind والصق https://github.com/cuongpt083/smart-pole-skill/tree/main/skills/sp-coding-agent. يقرأ TypingMind ملف SKILL.md الخاص بها، ويجمع ملفاتها ويثبّتها كمهارة يمكنك تفعيلها لكل محادثة على حدة.

ما نماذج الذكاء الاصطناعي التي يمكنها استخدام Sp Coding Agent؟

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

كم نموذج ذكاء اصطناعي يمكنني استخدامه مع Sp Coding Agent؟

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

هل مهارة الذكاء الاصطناعي Sp Coding Agent مجانية؟

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

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

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

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

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

عرض الكل

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

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