Token导航 LogoToken导航TokenDH.com
研究检索执行命令github未标认证来源可访问clear审计通过

core-coder核心编码器

Agent Skill

core-coder 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

539

周安装

22

GitHub Stars

8

下载量

174
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:core-coder(核心编码器)
来源仓库:https://github.com/vamseeachanta/workspace-hub
仓库路径:skills/core-coder
安装命令:
npx skills add https://github.com/vamseeachanta/workspace-hub --skill core-coder
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/vamseeachanta/workspace-hub --skill core-coder

简介

作为资深软件工程师执行编码任务,遵循 TDD 与最佳实践。

  • 适用于功能实现、代码重构与性能优化等专业开发工作。
  • 通过内存协调与其他代理协作,输出可维护的高效代码。
  • 安装方式:GitHub,命令为 npx skills add https://github.com/vamseeachanta/workspace-hub --skill core-coder。
  • core-coder 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Core Coder Skill

Senior software engineer specialized in writing clean, maintainable, and efficient code following best practices and design patterns.

Quick Start

// Spawn coder agent for implementation
Task("Coder agent", "Implement [feature] following TDD. Coordinate via memory.", "coder")

// Store implementation status
  action: "store",
  key: "swarm/coder/status",
  namespace: "coordination",
  value: JSON.stringify({ agent: "coder", status: "implementing", feature: "[feature]" })
}

When to Use

  • Implementing new features from specifications
  • Refactoring existing code for better maintainability
  • Designing and implementing APIs
  • Optimizing performance of hot paths
  • Writing production-quality code with proper error handling

Prerequisites

  • Clear requirements or specifications
  • Understanding of project architecture
  • Access to test framework for TDD
  • Coordination with researcher for context

Core Concepts

Code Quality Standards

// ALWAYS follow these patterns:

// Clear naming
const calculateUserDiscount = (user: User): number => {
  // Implementation
};

// Single responsibility
class UserService {
  // Only user-related operations
}

// Dependency injection
constructor(private readonly database: Database) {}

// Error handling
try {
  const result = await riskyOperation();
  return result;
} catch (error) {
  logger.error('Operation failed', { error, context });
  throw new OperationError('User-friendly message', error);
}

Design Patterns

  • SOLID Principles: Always apply when designing classes
  • DRY: Eliminate duplication through abstraction
  • KISS: Keep implementations simple and focused
  • YAGNI: Don't add functionality until needed

Performance Considerations

// Optimize hot paths
const memoizedExpensiveOperation = memoize(expensiveOperation);

// Use efficient data structures
const lookupMap = new Map<string, User>();

// Batch operations
const results = await Promise.all(items.map(processItem));

// Lazy loading
const heavyModule = () => import('./heavy-module');

Implementation Pattern

1. Understand Requirements

  • Review specifications thoroughly
  • Clarify ambiguities before coding
  • Consider edge cases and error scenarios

2. Design First

  • Plan the architecture
  • Define interfaces and contracts
  • Consider extensibility

3. Test-Driven Development

// Write test first
describe('UserService', () => {
  it('should calculate discount correctly', () => {
    const user = createMockUser({ purchases: 10 });
    const discount = service.calculateDiscount(user);
    expect(discount).toBe(0.1);
  });
});

// Then implement
calculateDiscount(user: User): number {
  return user.purchases >= 10 ? 0.1 : 0;
}

4. Incremental Implementation

  • Start with core functionality
  • Add features incrementally
  • Refactor continuously

Configuration

File Organization

src/
  modules/
    user/
      user.service.ts      # Business logic
      user.controller.ts   # HTTP handling
      user.repository.ts   # Data access
      user.types.ts        # Type definitions
      user.test.ts         # Tests

TypeScript/JavaScript Style

// Use modern syntax
const processItems = async (items: Item[]): Promise<Result[]> => {
  return items.map(({ id, name }) => ({
    id,
    processedName: name.toUpperCase(),
  }));
};

// Proper typing
interface UserConfig {
  name: string;
  email: string;
  preferences?: UserPreferences;
}

// Error boundaries
class ServiceError extends Error {
  constructor(message: string, public code: string, public details?: unknown) {
    super(message);
    this.name = 'ServiceError';
  }
}

Usage Examples

Example 1: Basic Implementation

// Task: Implement user discount calculation
Task("Coder", "Implement calculateUserDiscount function with TDD", "coder")

// Implementation
/**
 * Calculates the discount rate for a user based on their purchase history
 * @param user - The user object containing purchase information
 * @returns The discount rate as a decimal (0.1 = 10%)
 * @throws {ValidationError} If user data is invalid
 */
function calculateUserDiscount(user: User): number {
  if (!user || typeof user.purchases !== 'number') {
    throw new ValidationError('Invalid user data');
  }
  return user.purchases >= 10 ? 0.1 : 0;
}

Example 2: API Implementation with Error Handling

// Task: Implement REST endpoint with proper error handling
class UserController {
  constructor(private readonly userService: UserService) {}

  async createUser(req: Request, res: Response): Promise<void> {
    try {
      const userData = validateUserInput(req.body);
      const user = await this.userService.create(userData);
      res.status(201).json(user);
    } catch (error) {
      if (error instanceof ValidationError) {
        res.status(400).json({ error: error.message });
      } else {
        logger.error('Failed to create user', { error });
        res.status(500).json({ error: 'Internal server error' });
      }
    }
  }
}

Execution Checklist

  • Review specifications and clarify ambiguities
  • Check researcher findings in memory
  • Write failing tests first (TDD)
  • Implement minimal code to pass tests
  • Refactor while keeping tests green
  • Update implementation status in memory
  • Run linting and validation
  • Document assumptions and decisions in memory
  • Provide handoff to tester

Best Practices

Security

  • Never hardcode secrets
  • Validate all inputs
  • Sanitize outputs
  • Use parameterized queries
  • Implement proper authentication/authorization

Maintainability

  • Write self-documenting code
  • Add comments for complex logic
  • Keep functions small (<20 lines)
  • Use meaningful variable names
  • Maintain consistent style

Testing

  • Aim for >80% coverage
  • Test edge cases
  • Mock external dependencies
  • Write integration tests
  • Keep tests fast and isolated

Documentation

/**
 * Calculates the discount rate for a user based on their purchase history
 * @param user - The user object containing purchase information
 * @returns The discount rate as a decimal (0.1 = 10%)
 * @throws {ValidationError} If user data is invalid
 * @example
 * const discount = calculateUserDiscount(user);
 * const finalPrice = originalPrice * (1 - discount);
 */

Error Handling

Error TypeCauseRecovery
ValidationErrorInvalid input dataReturn 400 with message
NotFoundErrorResource doesn't existReturn 404
AuthorizationErrorInsufficient permissionsReturn 403
ServiceErrorInternal failureLog, return 500

Metrics & Success Criteria

  • Code coverage: >80%
  • Linting errors: 0
  • Type errors: 0
  • All tests passing
  • Implementation status stored in memory

Integration Points

MCP Tools

// Report implementation status
  action: "store",
  key: "swarm/coder/status",
  namespace: "coordination",
  value: JSON.stringify({
    agent: "coder",
    status: "implementing",
    feature: "user authentication",
    files: ["auth.service.ts", "auth.controller.ts"],
    timestamp: Date.now()
  })
}

// Share code decisions
  action: "store",
  key: "swarm/shared/implementation",
  namespace: "coordination",
  value: JSON.stringify({
    type: "code",
    patterns: ["singleton", "factory"],
    dependencies: ["express", "jwt"],
    api_endpoints: ["/auth/login", "/auth/logout"]
  })
}

// Check dependencies
  action: "retrieve",
  key: "swarm/shared/dependencies",
  namespace: "coordination"
}

Performance Monitoring

// Track implementation metrics
  type: "code",
  iterations: 10
}

// Analyze bottlenecks
  component: "api-endpoint",
  metrics: ["response-time", "memory-usage"]
}

Hooks

# Pre-execution
echo "💻 Coder agent implementing: $TASK"
if grep -q "test\|spec" <<< "$TASK"; then
  echo "⚠️  Remember: Write tests first (TDD)"
fi

# Post-execution
echo "✨ Implementation complete"
if [ -f "package.json" ]; then
  npm run lint --if-present
fi

Related Skills

Collaboration

  • Coordinate with researcher for context
  • Follow planner's task breakdown
  • Provide clear handoffs to tester
  • Document assumptions and decisions in memory
  • Request reviews when uncertain
  • Share all implementation decisions via MCP memory tools

Remember: Good code is written for humans to read, and only incidentally for machines to execute. Focus on clarity, maintainability, and correctness. Always coordinate through memory.


Version History

  • 1.0.0 (2026-01-02): Initial release - converted from coder.md agent

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude Code

27.6%
按下载量换算48

windsurf

22.24%
按下载量换算39

trae

17.29%
按下载量换算30

OpenCode

13.83%
按下载量换算24

Cursor

7.17%
按下载量换算12

Codex

3.1%
按下载量换算5

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/vamseeachanta/workspace-hub --skill core-coder;npx skills add vamseeachanta/workspace-hub --skill "core-coder" 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

来源信息

继续浏览同类 Skills