Logo Sp Coding Agent

Sp Coding Agent

Cộng đồng
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.

Tổng quan

Nhà phát hànhcuongpt083
Kho mãsmart-pole-skill
Tên kỹ năngsp-coding-agent
Sao
31
Bản fork
15
Tệp đi kèm
6
Giấy phépApache-2.0
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI là Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • 6 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được cuongpt083 công bố trên GitHub. Hãy đọc nội dung nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Sp Coding Agent trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL thư mục kỹ năng bên dưới và xác nhận.
    https://github.com/cuongpt083/smart-pole-skill/tree/main/skills/sp-coding-agent
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

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
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Sp Coding Agent trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự tải Sp Coding Agent ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên Sp Coding Agent không bị giới hạn ở mô hình mà kỹ năng này được viết cho. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên kỹ năng chưa dùng không tốn chi phí.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

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.

Tệp đi kèm

Mô hình đọc các tệp này khi cần trong lúc kỹ năng được tải. Các tệp được cung cấp ở dạng có thể đọc và không bao giờ được thực thi.

Câu hỏi thường gặp

Kỹ năng AI Sp Coding Agent làm được gì?

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.

Vì sao nên dùng Sp Coding Agent trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Sp Coding Agent là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Sp Coding Agent trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/cuongpt083/smart-pole-skill/tree/main/skills/sp-coding-agent. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm và cài đặt thành một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Sp Coding Agent?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Bạn có thể dùng Sp Coding Agent với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Sp Coding Agent với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Sp Coding Agent có miễn phí không?

Có. Kỹ năng này được cuongpt083 phát hành trên GitHub theo giấy phép Apache-2.0. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp cho mô hình các công cụ mới để gọi — mã được chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và tiêu chí của đầu ra tốt. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇