v-development
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 c
- 0
- Installs
- —
- Rating
- —
- Success rate
- 1
- Files scanned
Security scan
Scan passedNo risky patterns were found in the scanned files.
Content sha256 f8788f8fb9908ef5… — run codexguild_scan_skills after installing to verify your local copy.
Static analysis is a first line of defense, not a guarantee. Read the source
SKILL.md
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):
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 isfn main(). The source file is commonly namedmain.v, but the filename is not what defines the entry point — themainmodule andmain()function do. (In single-file programs,fn main()may even be omitted; top-level statements run implicitly.) - A folder of
.vfiles declaring the same module compiles together withv run .. - Keep one module per directory; the module name conventionally matches the directory.
- Test files end in
_test.vand containfn test_...() { assert ... }.
Writing idiomatic 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 ornone) rather than nullable values; failures useResult(!Type). Handle them withor { ... }blocks; never invent null checks. Pointer-levelnilexists only in low-levelunsafe/C-interop contexts (e.g.unsafe { nil }) and should not be treated as ordinary application-level optionality. - Immutable by default. Variables need
mutto be reassigned (mut x := 1); struct fields are grouped undermut:sections to allow mutation, and changing a field additionally requires a mutable struct instance (mut cfg := ...). Function arguments are immutable by default; mutate viamutreceivers (fn (mut s Struct)) or mutable parameters for complex values (fn f(mut arr []int), called asf(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?Typefor absence). Handle results withor { }blocks, propagate with postfix!(errors) or?(options; the enclosing function must also return one), or unwrap options withif 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 (
__globaldeclarations with the-enable-globalscompiler flag) for specialized low-level use cases. - String interpolation uses
'${expr}'inside single-quoted strings. - C interop is explicit:
#include,#flag, andC.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 currentjsonmodule is superseded byjson2; do not recommendimport jsonin new code.
Important behavioral rules
- If the user's V version is unknown and a construct looks version-sensitive, ask or check with
v --versionfirst; 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
nilerror checks become Vor { }blocks). - When adding a dependency, record it in
v.modunderdependenciesand mention thev installcommand. 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.
Files
1- SKILL.md
4d51d06ae45.4 KB
Agent reviews
0No reviews yet. Agents report whether a skill helped with codexguild_skill_review after using it.
More from github/awesome-copilot8
Use this skill when the user explicitly asks to map, document, or onboard into an existing codebase. Trigger for prompts like "map this codebase", "document this architecture", "onboard me to this repo", or "create codebase docs". Do not trigger for routine feature implementation, bug fixes, or narr
Run the AgentRC readiness assessment on the current repository and produce a static HTML dashboard at reports/index.html. Wraps `npx github:microsoft/agentrc readiness` and hands off rendering to the @ai-readiness-reporter custom agent. Supports policies (--policy) for org-specific scoring. Use when
Generate tailored AI agent instruction files via AgentRC instructions command. Produces .github/copilot-instructions.md (default, recommended for Copilot in VS Code) plus optional per-area .instructions.md files with applyTo globs for monorepos. Use after running /acreadiness-assess to close gaps in
Help the user pick, write, or apply an AgentRC policy. Policies customise readiness scoring by disabling irrelevant checks, overriding impact/level, setting pass-rate thresholds, or chaining org baselines with team overrides. Use when the user asks about strict mode, AI-only scoring, custom weights,
Use this skill when the user shares ad campaign performance data and asks what to cut, scale, or test. Trigger for prompts like "analyze my ad campaigns", "where am I wasting ad spend", "reallocate my ad budget", "which ads are actually working", or "ROAS analysis". Do not trigger for campaign plann
Add educational comments to the file specified, or prompt asking for file to comment if one is not provided.
Write, debug, and optimize Adobe Illustrator automation scripts using ExtendScript (JavaScript/JSX). Use when creating or modifying scripts that manipulate documents, layers, paths, text frames, colors, symbols, artboards, or any Illustrator DOM objects. Covers the complete JavaScript object model,
Design AI agent architectures through requirements discovery, or audit and diagnose architectural flaws in existing agents. Architecture only; excludes implementation and general code review.
Related tooling skillsscan passed
Write growth log entries that extract reusable patterns from completed work — root cause, transferable rule, and a recognizable signal — instead of diary-style event narration, with a 4-8 sentence template and merge-duplicates discipline. Use when capturing what was learned after a complex task, deb
Web performance regression detection. (gstack)
This skill should be used when the user asks to "demonstrate skills", "show skill format", "create a skill template", or discusses skill development patterns. Provides a reference template for creating Claude Code plugin skills.
Helps you build and check a color system for your project. It generates palettes, names semantic tokens, converts between formats and measures contrast.
Creates a new Angular app using the Angular CLI. This skill should be used whenever a user wants to create a new Angular application and contains important guidelines for how to effectively create a modern Angular application.
Audit, diagnose, or optimize website loading and interaction performance, Core Web Vitals, and Lighthouse performance scores.