███████╗██╗ ██╗██╗██╗ ██╗ ██████╗ █████╗ ███╗ ██╗██╗ ██╗
██╔════╝██║ ██╔╝██║██║ ██║ ██╔══██╗██╔══██╗████╗ ██║██║ ██╔╝
███████╗█████╔╝ ██║██║ ██║ ██████╔╝███████║██╔██╗ ██║█████╔╝
╚════██║██╔═██╗ ██║██║ ██║ ██╔══██╗██╔══██║██║╚██╗██║██╔═██╗
███████║██║ ██╗██║███████╗███████╗ ██║ ██║██║ ██║██║ ╚████║██║ ██╗
╚══════╝╚═╝ ╚═╝╚═╝╚══════╝╚══════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═══╝╚═╝ ╚═╝
Agent Skills 排行榜 · 关键词 + 语义搜索
| # | Skill | 仓库 | 描述 | 安装量 |
|---|---|---|---|---|
| 7701 | huggingface-local-models | huggingface/skills |
Hugging Face Local Models Search the Hugging Face Hub for llama.cpp-compatible GGUF repos, choose the right quant, and launch the model with llama-cli or llama-server . Default Workflow Search the Hub with apps=llama.cpp . Open https://huggingface.co/<repo>?local-app=llama.cpp . Prefer the exact HF local-app snippet and quant recommendation when it is visible. Confirm exact .gguf filenames with https://huggingface.co/api/models/<repo>/tree/main?recursive=true . Launch with llama-cli -hf <repo>:<...
|
671 |
| 7702 | mcp-server-patterns | affaan-m/ecc |
MCP Server Patterns The Model Context Protocol (MCP) lets AI assistants call tools, read resources, and use prompts from your server. Use this skill when building or maintaining MCP servers. The SDK API evolves; check Context7 (query-docs for "MCP") or the official MCP documentation for current method names and signatures. When to Use Use when: implementing a new MCP server, adding tools or resources, choosing stdio vs HTTP, upgrading the SDK, or debugging MCP registration and transport issues. ...
|
671 |
| 7703 | dashboard-builder | affaan-m/ecc |
Dashboard Builder Use this when the task is to build a dashboard people can operate from. The goal is not "show every metric." The goal is to answer: is it healthy? where is the bottleneck? what changed? what action should someone take? When to Use "Build a Kafka monitoring dashboard" "Create a Grafana dashboard for Elasticsearch" "Make a SigNoz dashboard for this service" "Turn this metrics list into a real operational dashboard" Guardrails do not start from visual layout; start from operator q...
|
671 |
| 7704 | content-engine | affaan-m/ecc |
Content Engine Turn one idea into strong, platform-native content instead of posting the same thing everywhere. When to Activate writing X posts or threads drafting LinkedIn posts or launch updates scripting short-form video or YouTube explainers repurposing articles, podcasts, demos, or docs into social content building a lightweight content plan around a launch, milestone, or theme First Questions Clarify: source asset: what are we adapting from audience: builders, investors, customers, operat...
|
671 |
| 7705 | multi-search | nex-zmh/agent-websearch-skill |
多主题深度研究技能 概述 智能多主题深度研究工具,自动分析材料并生成系统化研究文档。支持任意材料输入,通过 并行启动多个独立研究 Agent 进行深度检索,形成精简的研究知识库。 核心原则 : 只做信息检索、归纳与专业表述转化 不新增事实,不虚构信息 聚焦单一问题,精简输出,能够解决问题即可 通用设计,可适用于法律、商业、技术、学术等各领域 触发条件 Show more
|
670 |
| 7706 | server-management | sickn33/antigravity-awesome-skills |
Server Management Server management principles for production operations. Learn to THINK, not memorize commands. 1. Process Management Principles Tool Selection Scenario Tool Node.js app PM2 (clustering, reload) Any app systemd (Linux native) Containers Docker/Podman Orchestration Kubernetes, Docker Swarm Process Management Goals Goal What It Means Restart on crash Auto-recovery Zero-downtime reload No service interruption Clustering Use all CPU cores Persistence Survive server reboot 2. Monit...
|
670 |
| 7707 | clerk-auth | sickn33/antigravity-awesome-skills |
Clerk Authentication Patterns Next.js App Router Setup Complete Clerk setup for Next.js 14/15 App Router. Includes ClerkProvider, environment variables, and basic sign-in/sign-up components. Key components: ClerkProvider: Wraps app for auth context , : Pre-built auth forms : User menu with session management Middleware Route Protection Protect routes using clerkMiddleware and createRouteMatcher. Best practices: Single middleware.ts file at project root Use createRouteMatcher for route groups aut...
|
670 |
| 7708 | prd-writer | pmprompt/claude-plugin-product-management |
Domain Context This skill implements a proven product management framework. The approach combines best practices from industry leaders and is designed for practical application in day-to-day PM work. Input Requirements Context about your product, feature, or problem Relevant data, research, or constraints (recommended but optional) Clear articulation of what you're trying to achieve PRD Writer When to Use Starting a new feature or product initiative Need to document requirements for the engineer...
|
670 |
| 7709 | searxng-search | ypares/agent-skills |
SearXNG is a privacy-respecting metasearch engine that you can run locally. It aggregates results from multiple search engines and package repositories, returning clean JSON output. Quick Start Start SearXNG: ``` start-searxng --detach ``` This will: - Auto-detect podman or docker - Create a minimal config with JSON output enabled - Start SearXNG on `http://localhost:8888` - Wait until ready Stop SearXNG: ``` podman stop searxng or: docker stop searxng ``` Custom port: ``` start...
|
670 |
| 7710 | avast-premium-security-malware-analysis | aradotso/security-skills |
Avast Premium Security Analysis Skill Skill by ara.so — Security Skills collection. ⚠️ Important Notice WARNING : This repository appears to be offering pirated/cracked security software with keygens and activators. This is: Illegal - Violates software licensing agreements and copyright law Dangerous - "Cracks" and "keygens" are common malware distribution vectors Unethical - Undermines legitimate security software development Counterproductive - Installing cracked antivirus defeats the purpose ...
|
670 |
| 7711 | add-app-to-server | modelcontextprotocol/ext-apps |
Add UI to MCP Server Enrich an existing MCP server's tools with interactive UIs using the MCP Apps SDK ( @modelcontextprotocol/ext-apps ). How It Works Existing tools get paired with HTML resources that render inline in the host's conversation. The tool continues to work for text-only clients — UI is an enhancement, not a replacement. Each tool that benefits from UI gets linked to a resource via _meta.ui.resourceUri , and the host renders that resource in a sandboxed iframe when the tool is call...
|
670 |
| 7712 | go-defensive | cxuu/golang-skills |
Go Defensive Programming Patterns Verify Interface Compliance Source: Uber Go Style Guide Verify interface compliance at compile time using zero-value assertions. Bad type Handler struct{} func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request) { // ... } Good type Handler struct{} var _ http.Handler = (*Handler)(nil) func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request) { // ... } Use nil for pointer types, slices, maps; empty struct {} for value receiv...
|
670 |
| 7713 | animate | delphi-ai/animate-skill |
Analyze a feature and strategically add animations and micro-interactions that enhance understanding, provide feedback, and create delight. MANDATORY PREPARATION Context Gathering (Do This First) You cannot do a great job without having necessary context, such as target audience (critical), desired use-cases (critical), brand personality/tone (playful vs serious, energetic vs calm), and performance constraints. Attempt to gather these from the current thread or codebase. If you don't find exact ...
|
670 |
| 7714 | copilotkit | copilotkit/skills |
Route to the appropriate sub-skill based on the user's task. If the task is ambiguous, ask one clarifying question before routing. Quickstart (default path) If the user wants to add CopilotKit to their project, or the request is general/unclear, route here: copilotkit-setup — Install packages, configure the runtime, wire up the provider, get a working chat UI. Routing Table Task Sub-skill Initial setup, installation, adding CopilotKit to a project copilotkit-setup Building features — frontend to...
|
670 |
| 7715 | markdown-mermaid-writing | k-dense-ai/scientific-agent-skills |
Markdown and Mermaid Writing Overview This skill teaches you — and enforces a standard for — creating scientific documentation using markdown with embedded Mermaid diagrams as the default and canonical format . The core bet: a relationship expressed as a Mermaid diagram inside a .md file is more valuable than any image. It is text, so it diffs cleanly in git. It requires no build step. It renders natively on GitHub, GitLab, Notion, VS Code, and any markdown viewer. It uses fewer tokens than a pr...
|
670 |
| 7716 | quarto-authoring | posit-dev/skills |
Quarto Authoring This skill is based on Quarto CLI v1.8.26. When to Use What Task: Write a new Quarto document Use: Follow "QMD Essentials" below, then see specific reference files Task: Convert R Markdown to Quarto Use: references/conversion-rmarkdown.md Task: Migrate bookdown project Use: references/conversion-bookdown.md Task: Migrate xaringan slides Use: references/conversion-xaringan.md Task: Migrate distill article Use: references/conversion-distill.md Task: Migrate blogdown site Use: refe...
|
670 |
| 7717 | pdb-database | google-deepmind/science-skills |
RCSB Protein Data Bank skill Prerequisites uv : Read the uv skill and follow its Setup instructions to ensure uv is installed and on PATH. User Notification : If LICENSE_NOTIFICATION.txt does not already exist in this skill directory then (1) prominently notify the user to check the terms at https://www.rcsb.org/pages/usage-policy , then (2) create the file recording the notification text and timestamp. Core Rules Show more Installs 429 Repository google-deepmind…e-skills GitHub Stars 881 First ...
|
670 |
| 7718 | pubchem-database | google-deepmind/science-skills |
PubChem Database Prerequisites uv : Read the uv skill and follow its Setup instructions to ensure uv is installed and on PATH. User Notification : If LICENSE_NOTIFICATION.txt does not already exist in this skill directory then (1) prominently notify the user to check the terms at https://pubchem.ncbi.nlm.nih.gov/docs/citation-guidelines and https://pubchem.ncbi.nlm.nih.gov/docs/pug-rest , then (2) create the file recording the notification text and timestamp. Quick Start PubChem queries are exec...
|
670 |
| 7719 | ncbi-sequence-fetch | google-deepmind/science-skills |
NCBI Sequence Fetch Prerequisites Show more Installs 425 Repository google-deepmind…e-skills GitHub Stars 881 First Seen May 19, 2026 Security Audits Gen Agent Trust Hub Pass Socket Pass Snyk Warn
|
670 |
| 7720 | browser-qa | affaan-m/ecc |
Browser QA — Automated Visual Testing & Interaction When to Use After deploying a feature to staging/preview When you need to verify UI behavior across pages Before shipping — confirm layouts, forms, interactions actually work When reviewing PRs that touch frontend code Accessibility audits and responsive testing How It Works Uses the browser automation MCP (claude-in-chrome, Playwright, or Puppeteer) to interact with live pages like a real user. Phase 1: Smoke Test 1. Navigate to target URL 2. ...
|
670 |
| 7721 | android-clean-architecture | affaan-m/ecc |
Android Clean Architecture Clean Architecture patterns for Android and KMP projects. Covers module boundaries, dependency inversion, UseCase/Repository patterns, and data layer design with Room, SQLDelight, and Ktor. When to Activate Structuring Android or KMP project modules Implementing UseCases, Repositories, or DataSources Designing data flow between layers (domain, data, presentation) Setting up dependency injection with Koin or Hilt Working with Room, SQLDelight, or Ktor in a layered archi...
|
670 |
| 7722 | ui-demo | affaan-m/ecc |
UI Demo Video Recorder Record polished demo videos of web applications using Playwright's video recording with an injected cursor overlay, natural pacing, and storytelling flow. When to Use User asks for a "demo video", "screen recording", "walkthrough", or "tutorial" User wants to showcase a feature or workflow visually User needs a video for documentation, onboarding, or stakeholder presentation Three-Phase Process Every demo goes through three phases: Discover -> Rehearse -> Record . Never sk...
|
670 |
| 7723 | security-scan | affaan-m/ecc |
Security Scan Skill Audit your Claude Code configuration for security issues using AgentShield . When to Activate Setting up a new Claude Code project After modifying .claude/settings.json , CLAUDE.md , or MCP configs Before committing configuration changes When onboarding to a new repository with existing Claude Code configs Periodic security hygiene checks What It Scans File Checks CLAUDE.md Hardcoded secrets, auto-run instructions, prompt injection patterns settings.json Overly permissive all...
|
670 |
| 7724 | docker | mindrally/skills |
Docker Containerization Skill Summary Docker provides containerization for packaging applications with their dependencies into isolated, portable units. Containers ensure consistency across development, testing, and production environments, eliminating "works on my machine" problems. When to Use Local Development: Consistent dev environments across team members CI/CD Pipelines: Reproducible build and test environments Microservices: Isolated services with independent scaling Production Deploym...
|
669 |
| 7725 | archive | camacho/ai-skills |
Archive Skill Capture, index, and reuse project knowledge across sessions. When to Archive After completing a significant task (deploy, migration, major feature) After resolving a tricky debugging session When the user says "archive this" After any multi-step process with learnings worth preserving When to Consult Archives Before debugging infrastructure, deploy, or CI issues Before repeating a process done in a past session When encountering an error that may have been solved before Search : gr...
|
669 |
| 7726 | compare-models | replicate/skills |
Docs Reference: https://replicate.com/docs/llms.txt OpenAPI schema: https://api.replicate.com/openapi.json MCP server: https://mcp.replicate.com Per-model docs: https://replicate.com/{owner}/{model}/llms.txt Set Accept: text/markdown when requesting docs pages for Markdown responses. Workflow Search or browse collections to build a shortlist of candidate models. Fetch each model's schema to compare inputs, outputs, and capabilities. Check pricing from model metadata or the Replicate website. Run...
|
669 |
| 7727 | django-celery-expert | vintasoftware/django-ai-plugins |
Django Celery Expert Overview This skill provides expert guidance for Django applications using Celery for asynchronous task processing. It covers task design patterns, worker configuration, error handling, monitoring, and production deployment strategies. Key Capabilities: Task design and implementation patterns Worker configuration and scaling Error handling and retry strategies Periodic/scheduled task management Monitoring and observability Production deployment best practices When to Use ...
|
669 |
| 7728 | handoff | vinvcn/mattpocock-skills-zh-cn |
Write a handoff document summarising the current conversation so a fresh agent can continue the work. Save it to a path produced by mktemp -t handoff-XXXXXX.md (read the file before you write to it). Suggest the skills to be used, if any, by the next session. Do not duplicate content already captured in other artifacts (PRDs, plans, ADRs, issues, commits, diffs). Reference them by path or URL instead. If the user passed arguments, treat them as a description of what the next session will focus o...
|
669 |
| 7729 | zoom-out | vinvcn/mattpocock-skills-zh-cn |
I don't know this area of code well. Go up a layer of abstraction. Give me a map of all the relevant modules and callers.
|
669 |
| 7730 | springboot-patterns | affaan-m/ecc |
Spring Boot architecture and API patterns for scalable, production-grade services. REST API Structure ``` @RestController @RequestMapping("/api/markets") @Validated class MarketController { private final MarketService marketService; MarketController(MarketService marketService) { this.marketService = marketService; } @GetMapping ResponseEntity<Page<MarketResponse>> list( @RequestParam(defaultValue = "0") int page, @RequestParam(defaultValue = "20") int size) { ...
|
669 |
| 7731 | figma-designer | charon-fan/agent-playbook |
"Transform Figma designs into implementation-ready specifications with pixel-perfect accuracy" Overview This skill analyzes Figma designs through the Figma MCP server and generates detailed PRDs with precise visual specifications. It extracts design tokens, component specifications, and layout information that developers can implement directly. Prerequisites Figma MCP Server Ensure the Figma MCP server is connected and accessible: ``` Check if Figma MCP is available mcp-list ``` If n...
|
668 |
| 7732 | dart-best-practices | kevmoo/dash_skills |
Dart Best Practices 1. When to use this skill Use this skill when: Writing or reviewing Dart code. Looking for guidance on idiomatic Dart usage. 2. Best Practices Multi-line Strings Prefer using multi-line strings ( ''' ) over concatenating strings with + and \n , especially for large blocks of text like SQL queries, HTML, or PEM-encoded keys. This improves readability and avoids lines_longer_than_80_chars lint errors by allowing natural line breaks. Avoid: final pem = '-----BEGIN RSA PRIVATE KE...
|
668 |
| 7733 | micro-interactions | dylantarre/animation-principles |
Micro-interaction Animation Apply Disney's 12 animation principles to small UI feedback moments and interface details. Quick Reference Principle Micro-interaction Implementation Squash & Stretch Button press compression, toggle bounce Anticipation Hover state hints, pre-click feedback Staging Focus attention on active element Straight Ahead / Pose to Pose Progress vs state changes Follow Through / Overlapping Ripple effects, settling motion Slow In / Slow Out Snappy but smooth transitions Arc ...
|
668 |
| 7734 | go-functional-options | cxuu/golang-skills |
Functional Options Pattern Source: Uber Go Style Guide Functional options is a pattern where you declare an opaque Option type that records information in an internal struct. The constructor accepts a variadic number of these options and applies them to configure the result. When to Use Use functional options when: 3+ optional arguments on constructors or public APIs Extensible APIs that may gain new options over time Clean caller experience is important (no need to pass defaults) The Patte...
|
668 |
| 7735 | dt-migration | dynatrace/dynatrace-for-ai |
Smartscape Migration Skill This skill helps migrate Dynatrace classic and Gen2 entity-based DQL queries and query patterns to Smartscape-based equivalents. Use it to: convert classic entity types to Smartscape node types rewrite classic entity DQL into Smartscape DQL migrate entityName() , entityAttr() , classicEntitySelector() , and classic relationship patterns explain how classic entity concepts map to Smartscape nodes, edges, fields, and IDs Load the dt-dql-essentials skill before writing fi...
|
668 |
| 7736 | ads-math | agricidaniel/claude-ads |
PPC Financial Calculator & Modeling Process Ask the user what calculation they need (or detect from context) Collect required inputs (from pasted data, exports, or verbal description) Perform calculations with clear formulas shown Present results with interpretation and recommendations Flag any concerning metrics or benchmarks Calculators 1. CPA Calculator CPA = Total Spend / Total Conversions Show more
|
668 |
| 7737 | statistical-analysis | k-dense-ai/scientific-agent-skills |
Statistical Analysis Skill Descriptive statistics, trend analysis, outlier detection, hypothesis testing, and guidance on when to be cautious about statistical claims. Descriptive Statistics Methodology Central Tendency Choose the right measure of center based on the data: Situation Use Why Symmetric distribution, no outliers Mean Most efficient estimator Skewed distribution Median Robust to outliers Categorical or ordinal data Mode Only option for non-numeric Highly skewed with outliers (e.g., ...
|
668 |
| 7738 | write-a-skill | vinvcn/mattpocock-skills-zh-cn |
Writing Skills Process Gather requirements - ask user about: What task/domain does the skill cover? What specific use cases should it handle? Does it need executable scripts or just instructions? Any reference materials to include? Draft the skill - create: SKILL.md with concise instructions Additional reference files if content exceeds 500 lines Utility scripts if deterministic operations needed Review with user - present draft and ask: Does this cover your use cases? Anything missing or unclea...
|
668 |
| 7739 | marketing-ideas | davila7/claude-code-templates |
Marketing Ideas for SaaS You are a marketing strategist with a library of 139 proven marketing ideas. Your goal is to help users find the right marketing strategies for their specific situation, stage, and resources. How to Use This Skill Check for product marketing context first: If .agents/product-marketing-context.md exists (or .claude/product-marketing-context.md in older setups), read it before asking questions. Use that context and only ask for information not already covered or specific t...
|
668 |
| 7740 | alphafold-database-fetch-and-analyze | google-deepmind/science-skills |
AlphaFold Database: Fetch and Analyze Prerequisites uv : Read the uv skill and follow its Setup instructions to ensure uv is installed and on PATH. User Notification : If LICENSE_NOTIFICATION.txt does not already exist in this skill directory then (1) prominently notify the user to check the terms at https://alphafold.ebi.ac.uk/ , then (2) create the file recording the notification text and timestamp. Overview Downloads AlphaFold predicted structures (mmCIF) and Predicted Aligned Error (PAE) mat...
|
668 |
| 7741 | benchmark | affaan-m/ecc |
Benchmark — Performance Baseline & Regression Detection When to Use Before and after a PR to measure performance impact Setting up performance baselines for a project When users report "it feels slow" Before a launch — ensure you meet performance targets Comparing your stack against alternatives How It Works Mode 1: Page Performance Measures real browser metrics via browser MCP: 1. Navigate to each target URL 2. Measure Core Web Vitals: - LCP (Largest Contentful Paint) — target < 2.5s - CLS (Cum...
|
668 |
| 7742 | product-lens | affaan-m/ecc |
Product Lens — Think Before You Build This lane owns product diagnosis, not implementation-ready specification writing. If the user needs a durable PRD-to-SRS or capability-contract artifact, hand off to product-capability . When to Use Before starting any feature — validate the "why" Weekly product review — are we building the right thing? When stuck choosing between features Before a launch — sanity check the user journey When converting a vague idea into a product brief before engineering pla...
|
668 |
| 7743 | agent-eval | affaan-m/ecc |
Agent Eval Skill A lightweight CLI tool for comparing coding agents head-to-head on reproducible tasks. Every "which coding agent is best?" comparison runs on vibes — this tool systematizes it. When to Activate Comparing coding agents (Claude Code, Aider, Codex, etc.) on your own codebase Measuring agent performance before adopting a new tool or model Running regression checks when an agent updates its model or tooling Producing data-backed agent selection decisions for a team Installation Note:...
|
668 |
| 7744 | cpp-coding-standards | affaan-m/ecc |
C++ Coding Standards (C++ Core Guidelines) Comprehensive coding standards for modern C++ (C++17/20/23) derived from the C++ Core Guidelines . Enforces type safety, resource safety, immutability, and clarity. When to Use Writing new C++ code (classes, functions, templates) Reviewing or refactoring existing C++ code Making architectural decisions in C++ projects Enforcing consistent style across a C++ codebase Choosing between language features (e.g., enum vs enum class , raw pointer vs smart poin...
|
668 |
| 7745 | rendering-strategies | kostja94/marketing-skills |
SEO Technical: Rendering Strategies Guides rendering strategy selection and optimization for search engine and AI crawler visibility. Golden rule : Page data and metadata must be available on page load without JavaScript execution for optimal SEO. When invoking : On first use , if helpful, open with 1–2 sentences on what this skill covers and why it matters, then provide the main output. On subsequent use or when the user asks to skip, go directly to the main output. Scope (Technical SEO) Static...
|
667 |
| 7746 | posthog-analytics | alinaqi/claude-bootstrap |
PostHog Analytics Skill Load with: base.md + [framework].md For implementing product analytics with PostHog - event tracking, user identification, feature flags, and project-specific dashboards. Sources: PostHog Docs | Product Analytics | Feature Flags Philosophy Measure what matters, not everything. Analytics should answer specific questions: Are users getting value? (activation, retention) Where do users struggle? (funnels, drop-offs) What features drive engagement? (feature usage) Is t...
|
667 |
| 7747 | ai-wrapper-product | sickn33/antigravity-awesome-skills |
AI Wrapper Product Role: AI Product Architect You know AI wrappers get a bad rap, but the good ones solve real problems. You build products where AI is the engine, not the gimmick. You understand prompt engineering is product development. You balance costs with user experience. You create AI products people actually pay for and use daily. Capabilities AI product architecture Prompt engineering for products API cost management AI usage metering Model selection AI UX patterns Output quality con...
|
667 |
| 7748 | jira-expert | alirezarezvani/claude-skills |
Atlassian Jira Expert Master-level expertise in Jira configuration, project management, JQL, workflows, automation, and reporting. Handles all technical and operational aspects of Jira. Core Competencies Project Configuration Create and configure Jira projects (Scrum, Kanban, custom) Design and implement custom workflows Configure issue types, fields, and screens Set up project permissions and security schemes JQL Mastery Write advanced JQL queries for any use case Create complex filters with mu...
|
667 |
| 7749 | voice-agents | sickn33/antigravity-awesome-skills |
Voice Agents You are a voice AI architect who has shipped production voice agents handling millions of calls. You understand the physics of latency - every component adds milliseconds, and the sum determines whether conversations feel natural or awkward. Your core insight: Two architectures exist. Speech-to-speech (S2S) models like OpenAI Realtime API preserve emotion and achieve lowest latency but are less controllable. Pipeline architectures (STT→LLM→TTS) give you control at each step but ad...
|
667 |
| 7750 | go-data-structures | cxuu/golang-skills |
Go Data Structures Source: Effective Go This skill covers Go's built-in data structures and allocation primitives. Allocation: new vs make Go has two allocation primitives: new and make. They do different things. new new(T) allocates zeroed storage for a new item of type T and returns *T: p := new(SyncedBuffer) // type *SyncedBuffer, zeroed var v SyncedBuffer // type SyncedBuffer, zeroed Zero-value design: Design data structures so the zero value is useful without further initial...
|
667 |