بنقرة واحدة
coding
Advanced coding assistance with code review, optimization, design patterns, and refactoring guidance
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Advanced coding assistance with code review, optimization, design patterns, and refactoring guidance
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
Summarize and condense content effectively
Translate content between languages with context awareness
API testing best practices, tools, and workflows for RESTful API testing.
Code quality standards, metrics, and practices for maintaining clean, maintainable codebases.
Code review best practices, guidelines, and checklists for effective peer reviews.
Go debugging best practices, tools, and techniques for effective troubleshooting.
استنادا إلى تصنيف SOC المهني
| name | coding |
| description | Advanced coding assistance with code review, optimization, design patterns, and refactoring guidance |
| version | 1.0.0 |
| author | go-magic |
| tags | ["coding","review","optimization","design-patterns","refactoring"] |
| tools | ["read_file","file_search","lint","format_code"] |
Load this skill when:
Comprehensive code review covering:
Optimization strategies for:
Common patterns and when to use them:
Refactoring techniques:
[ ] Input validation and sanitization
[ ] SQL injection prevention (use parameterized queries)
[ ] XSS prevention (escape output)
[ ] No hardcoded secrets or credentials
[ ] Proper authentication/authorization
[ ] Secure random number generation
[ ] HTTPS for sensitive data transmission
[ ] Proper error handling (no information leakage)
[ ] No N+1 query problems
[ ] Appropriate caching implemented
[ ] Database queries optimized
[ ] Pagination for large datasets
[ ] Resource cleanup (files, connections)
[ ] Memory allocation optimized
[ ] Concurrency used where appropriate
[ ] Clear, descriptive naming
[ ] Single responsibility principle
[ ] No duplicated code (DRY)
[ ] Proper abstraction levels
[ ] Comprehensive error handling
[ ] Unit tests for critical paths
[ ] Documentation for public APIs
[ ] Consistent code style
[Priority] [Category]: Description
Examples:
[High] Security: SQL injection vulnerability in user input
[High] Performance: N+1 query in user listing
[Medium] Style: Consider extracting to helper function
[Low] Documentation: Missing function documentation
gofmt for formattingconst and let over varcargo clippy for linting// Bad
query := "SELECT * FROM users WHERE id = " + userID
// Good
query := "SELECT * FROM users WHERE id = ?"
rows, err := db.Query(query, userID)
// Bad - N+1 query
for _, user := range users {
orders := getOrders(user.ID) // Query in loop
}
// Good - Single query with JOIN
orders := getOrdersForUsers(userIDs)
// Before
func process(data []Data) {
for i := 0; i < len(data); i++ {
if data[i].Type == "A" {
processA(data[i])
} else if data[i].Type == "B" {
processB(data[i])
}
}
}
// After
func process(data []Data) {
for _, d := range data {
processByType(d)
}
}
func processByType(d Data) {
switch d.Type {
case "A":
processA(d)
case "B":
processB(d)
}
}
This skill integrates with:
lint: Automatic code lintingformat_code: Code formattingread_file: Code analysisfile_search: Finding related code