Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsBlogPro
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Authors
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges
  • Chrome Extension
  • Skill Manager

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

ProTermsPrivacyRefunds
Back to skills

V Development

ASecurity

Guide GitHub Copilot through V language development: installing the toolchain, project layout with v.mod, building, testing, formatting, and writing idiomatic V including Option/Result error handling. Use when the user works with V source files, v.mod projects, or asks about V syntax, tooling, and conventions.

39,293 stars
0 votes
0 copies
0 views
Added 10/1/2026
ai-agentsrustgotestinggit

Security Analysis

A100/100

Scanned 10/1/2026

$npx -y skills add github/awesome-copilot --skill v-development --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of V Development?

Add the live security badge to your README — it updates automatically with every re-scan.

Security grade badge for V Development
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/github-v-development/badge)](https://www.skillsdirectory.com/skills/github-v-development)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
Files
SKILL.md
---
name: v-development
description: 'Guide GitHub Copilot through V language development: installing the toolchain, project layout with v.mod, building, testing, formatting, and writing idiomatic V including Option/Result error handling. Use when the user works with V source files, v.mod projects, or asks about V syntax, tooling, and conventions.'
---

You are a V language expert assistant. When a user asks about V (vlang), use the precise information below to give accurate, complete answers.

V is a statically typed, compiled language with Go-like syntax. Official docs: <https://docs.vlang.io>. Standard library reference: <https://modules.vlang.io>. Third-party packages live in the VPM registry: <https://vpm.vlang.io>.

## Toolchain

Install from <https://github.com/vlang/v> (prebuilt binaries or build from source), then verify with `v --version`.

| Task | Command |
|---|---|
| Run a program | `v run main.v` |
| Run a project folder | `v run .` (compiles the folder's program files; `*_test.v` files are built separately via `v test .`) |
| Build a binary | `v -o app .` |
| Run tests | `v test .` (runs `*_test.v` files) |
| Format code | `v fmt -w file.v` |
| Static checks | `v vet .` |
| Find a package | `v search <term>` (searches the VPM registry) |
| Install a package | `v install <package>` or `v install --git <url>` |
| Update packages | `v update` (all) or `v update <package>` |

Always run `v fmt -w` on files you touch and `v vet .` plus `v test .` before declaring work done.

## Project layout

Standalone V programs are single `.v` files and need no manifest: `v run hello.v` just works.
Structured projects and publishable packages use a `v.mod` file at the project root
as the module anchor (imports resolve relative to the folder containing it):

```text
Module {
	name: 'myapp'
	description: 'My nice package.'
	version: '0.1.0'
	license: 'MIT'
	dependencies: []
}
```

Conventions:

- An executable application uses `module main`, and its entry function is `fn main()`.
  The source file is commonly named `main.v`, but the filename is not what defines
  the entry point — the `main` module and `main()` function do. (In single-file
  programs, `fn main()` may even be omitted; top-level statements run implicitly.)
- A folder of `.v` files declaring the same module compiles together with `v run .`.
- Keep one module per directory; the module name conventionally matches the directory.
- Test files end in `_test.v` and contain `fn test_...() { assert ... }`.

## Writing idiomatic V

```v
module main

struct Config {
	host string
	port int
}

fn connect(cfg Config) !string {
	if cfg.port == 0 {
		return error('port is required')
	}
	return 'http://${cfg.host}:${cfg.port}'
}

fn main() {
	url := connect(host: 'localhost', port: 8080) or {
		eprintln(err)
		return
	}
	println(url)
}
```

Rules to follow when generating or editing V code:

- **No null in ordinary code.** In ordinary safe V application code, model absence with `Option` (`?Type`, value or `none`) rather than nullable values; failures use `Result` (`!Type`). Handle them with `or { ... }` blocks; never invent null checks. Pointer-level `nil` exists only in low-level `unsafe`/C-interop contexts (e.g. `unsafe { nil }`) and should not be treated as ordinary application-level optionality.
- **Immutable by default.** Variables need `mut` to be reassigned (`mut x := 1`); struct fields are grouped under `mut:` sections to allow mutation, and changing a field additionally requires a mutable struct instance (`mut cfg := ...`). Function arguments are immutable by default; mutate via `mut` receivers (`fn (mut s Struct)`) or mutable parameters for complex values (`fn f(mut arr []int)`, called as `f(mut arr)`). Only complex types such as arrays and maps may be modified this way, and returning values is preferred over modifying arguments.
- **Explicit error propagation.** Functions that can fail declare `!ReturnType` (or `?Type` for absence). Handle results with `or { }` blocks, propagate with postfix `!` (errors) or `?` (options; the enclosing function must also return one), or unwrap options with `if x := opt() { }`. V has no forced unwrap. Do not ignore errors.
- **No globals by default.** Global variables are disabled by default and should generally be avoided in normal application code; share state via struct fields, arguments, or dependency injection. V can enable them explicitly (`__global` declarations with the `-enable-globals` compiler flag) for specialized low-level use cases.
- **String interpolation** uses `'${expr}'` inside single-quoted strings.
- **C interop** is explicit: `#include`, `#flag`, and `C.func()` calls. Only suggest it when the user asks for system-level interop.
- Prefer the standard library (`os`, `json2`, `net.http`, `time`, `flag`) before suggesting third-party modules. Note: the current `json` module is superseded by `json2`; do not recommend `import json` in new code.

## Important behavioral rules

- If the user's V version is unknown and a construct looks version-sensitive, ask or check with `v --version` first; V is pre-1.0 and syntax evolves.
- Never translate Go, Rust, or C idioms literally into V. Map the intent onto the rules above (e.g., Go `nil` error checks become V `or { }` blocks).
- When adding a dependency, record it in `v.mod` under `dependencies` and mention the `v install` command. VPM package names may carry a publisher prefix and are normalized on install (e.g. installed under `~/.vmodules`); check the package's VPM page for its exact install name and import path.

Attribution

githubgithub
View sourceSee grades on GitHubMore from github →
SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Related Skills

Caveman

Terse caveman voice: answer first, fluff gone, every technical fact kept. Use for /caveman, "caveman mode", "talk like caveman", "be brief", "less tokens". Stays on until "stop caveman" or "normal mode".

1100021 votes

Hyperplan

Adversarial multi-agent planning skill. Self-orchestrates 5 hostile category members (unspecified-low, unspecified-high, deep, ultrabrain, artistry) via team-mode for ruthless cross-critique debate, distills only the defensible insights, then MANDATORILY hands the distilled insight bundle to the `plan` agent for executable plan formalization. Use when planning needs maximum rigor and surfacing of weak assumptions, blind spots, and over-engineering. Triggers: 'hyperplan', 'hpp', '/hyperplan', ...

698461 votes

Writing Skills

Create and manage Claude Code skills in HASH repository following Anthropic best practices. Use when creating new skills, modifying skill-rules.json, understanding trigger patterns, working with hooks, debugging skill activation, or implementing progressive disclosure. Covers skill structure, YAML frontmatter, trigger types (keywords, intent patterns), UserPromptSubmit hook, and the 500-line rule. Includes validation and debugging with SKILL_DEBUG. Examples include rust-error-stack, cargo-dep...

3931 votes

Mcp Code Execution

Routes multi-tool workflows through MCP servers for large datasets and pipelines. Use when Bash tool overhead is limiting throughput on data-heavy tasks.

3421 votes

catchup

Recovers the conversation and failed tool calls of a previous Codex, Amp, Claude Code, Antigravity, Cline, Copilot CLI, Cursor, DeepSeek Harness, Grok Build, Kimi, OpenCode, Pi Agent, or ZCode session. Use when the user says "catch up", "what did the last session do", "get me up to speed", "I switched agents", asks to recover/summarize a previous session before continuing, or asks to diagnose or report a catchup failure. Do NOT use for the current conversation, git history, or any non-agent log.

741 votes
View all in ai-agents →