Logo di Sp Coding Agent

Sp Coding Agent

Community
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.

Panoramica

Autorecuongpt083
Repositorysmart-pole-skill
Nome della skillsp-coding-agent
Stelle
31
Fork
15
File inclusi
6
LicenzaApache-2.0
Link
  • Istruzioni in Markdown

    Un file SKILL.md che il modello carica quando serve, consumando token solo quando una richiesta è effettivamente pertinente.

  • Funziona con qualsiasi LLM

    Le skill IA sono in semplice Markdown, non in codice specifico di un fornitore, quindi funzionano con GPT, Claude, Gemini, Grok o un modello locale.

  • 6 file inclusi

    Script, modelli di documento e riferimenti che il modello può leggere mentre lavora. I file sono di sola lettura e non vengono mai eseguiti.

  • Open source

    Pubblicata da cuongpt083 su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Sp Coding Agent in TypingMind per usarla con qualsiasi LLM, oppure copiala in un altro agente in grado di leggere SKILL.md.

1

Installa in TypingMind

TypingMind installa una skill direttamente dalla sua cartella GitHub: legge SKILL.md, raccoglie i file delle risorse e salva il risultato in locale.

  1. Apri l'app e vai su Plugin → Skill.
  2. Scegli "Installa da GitHub".
  3. Incolla l'URL della cartella della skill riportato qui sotto e conferma.
    https://github.com/cuongpt083/smart-pole-skill/tree/main/skills/sp-coding-agent
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Nuova skill → Da URL GitHub, poi incolla l'URL della cartella e premi Continua.
2

Installa in un altro agente

Qualsiasi agente che legge il formato Agent Skills può usare questa skill: copia la cartella nella cartella delle skill di quell'agente.

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
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Sp Coding Agent in qualsiasi chat di TypingMind e al resto pensa il modello. Il nome e la descrizione della skill sono nel prompt di sistema e, non appena arriva una richiesta pertinente, il modello carica da solo le istruzioni complete: non devi mai richiamarla manualmente e non consuma token finché non viene effettivamente usata.

Il modello carica automaticamente Sp Coding Agent non appena riceve una richiesta pertinente.

Funziona con qualsiasi modello IA

Le skill IA sono semplici istruzioni in Markdown, non codice specifico di un fornitore, quindi Sp Coding Agent non è vincolata al modello per cui è stata scritta. Installala una sola volta in TypingMind e usala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modello locale che esegui tu, sempre con le tue chiavi API.

  • Caricata solo quando serve

    Il prompt di sistema contiene solo il nome e la descrizione. Le istruzioni vengono recuperate alla prima richiesta pertinente, quindi una skill inutilizzata non costa nulla.

  • Cambia modello durante la chat

    Poiché la skill è composta da istruzioni e non da codice, continua a funzionare anche se cambi modello: il nuovo modello legge lo stesso file SKILL.md.

Istruzioni della skill

Questo è il contenuto di SKILL.md che il modello carica. Leggilo prima dell'installazione: una skill è un insieme di istruzioni che il tuo modello seguirà.

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.

File inclusi

Il modello legge questi file quando servono, mentre la skill è caricata. Sono accessibili in sola lettura e non vengono mai eseguiti.

Domande frequenti

Cosa fa la skill IA 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.

Perché usare Sp Coding Agent su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Sp Coding Agent è scritta in semplice Markdown anziché in codice specifico di un fornitore, quindi la stessa skill funziona con GPT-5, Claude, Gemini, Grok o un modello locale, e puoi cambiare modello durante la chat senza che smetta di funzionare. TypingMind usa le tue chiavi API, quindi paghi direttamente i fornitori anziché un abbonamento per posto utente, e le tue skill e chat restano nel tuo spazio di archiviazione.

Come installo Sp Coding Agent in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/cuongpt083/smart-pole-skill/tree/main/skills/sp-coding-agent. TypingMind legge il file SKILL.md, include i file associati e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Sp Coding Agent?

Qualsiasi modello che colleghi in TypingMind. Le skill IA sono semplici istruzioni in Markdown anziché codice specifico di un fornitore, quindi GPT, Claude, Gemini, Grok e i modelli locali possono tutti caricare questa skill quando una richiesta corrisponde al suo scopo.

Quanti modelli IA posso usare con Sp Coding Agent?

Quanti ne vuoi. Se un modello supporta le skill, puoi usarlo con Sp Coding Agent: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e molti altri, tutti su TypingMind con le tue chiavi API.

La skill IA Sp Coding Agent è gratuita?

Sì. È pubblicata su GitHub da cuongpt083 con licenza Apache-2.0. Paghi solo il tuo fornitore IA per i token che usi.

Cosa sono le skill IA?

Una skill IA è un pacchetto di istruzioni riutilizzabili che insegna a un modello IA come svolgere un'attività specifica. Segue il formato aperto Agent Skills: un file SKILL.md con un nome e una descrizione, più eventuali script, modelli o file di riferimento di cui il modello potrebbe aver bisogno. Il modello legge le istruzioni solo quando la tua richiesta corrisponde alla skill, quindi una skill installata non comporta costi finché non viene usata.

In cosa si differenziano le skill IA dai plugin o dai server MCP?

Un plugin o un server MCP fornisce a un modello nuovi strumenti da richiamare: codice che viene eseguito da qualche parte e restituisce un risultato. Una skill IA, invece, fornisce al modello conoscenze e procedure: come affrontare un'attività, quali passaggi seguire e quali caratteristiche deve avere un buon output. Le skill sono semplici istruzioni in Markdown, quindi non richiedono server, chiavi API né ambienti di esecuzione e funzionano con qualsiasi modello.

Vedi tutti

Crea subito la tua area di lavoro IA

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇