Agent Skills › google/boringssl › add-source-file

add-source-file

GitHub

指导如何向 BoringSSL 构建系统添加新源文件。需更新 build.json 配置并重新生成构建文件,确保代码正确纳入编译流程。

agents/skills/add_source_file/SKILL.md google/boringssl

Trigger Scenarios

需要向项目添加新的 C/C++ 或汇编源文件 修改了构建配置文件需要重新生成构建脚本

Install

npx skills add google/boringssl --skill add-source-file -g -y
More Options

Non-standard path

npx skills add https://github.com/google/boringssl/tree/main/agents/skills/add_source_file -g -y

Use without installing

npx skills use google/boringssl@add-source-file

指定 Agent (Claude Code)

npx skills add google/boringssl --skill add-source-file -a claude-code -g -y

安装 repo 全部 skill

npx skills add google/boringssl --all -g -y

预览 repo 内 skill

npx skills add google/boringssl --list

SKILL.md

Frontmatter
{
    "name": "add-source-file",
    "description": "How to add a new source file to the BoringSSL build."
}

Adding a Source File to the Build

To add a new source file (C/C++, header, or assembly) to BoringSSL, you must update the build configuration and regenerate the build files.

Steps

  1. Update build.json:

    • Add the new file to the correct section (e.g., srcs, hdrs, internal_hdrs) under the appropriate target in build.json.
    • For the schema of build.json, refer to the Go structs in util/pregenerate/build.go.
  2. Update Pregenerated Files:

Version History

  • 179af5a Current 2026-08-20 19:54

Same Skill Collection

agents/skills/add_object_nid_oid/SKILL.md
agents/skills/run_ssl_go_tests/SKILL.md
agents/skills/update_pregenerated_files/SKILL.md
agents/skills/add_error_code/SKILL.md
agents/skills/build_and_test/SKILL.md

Metadata

Files
0
Version
5112448
Hash
093142ab
Indexed
2026-08-20 19:54

inicio - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-10-05 14:57
浙ICP备14020137号-1