Add Source File
Developmentadd-source-fileAdd Source File is an Agent Skill for development published in the google/boringssl repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
How to add a new source file to the BoringSSL build.
QUICK START
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/google/boringssl/blob/HEAD/agents/skills/add_source_file/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/add-source-file, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
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
-
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.
- Add the new file to the correct section (e.g.,
-
Update Pregenerated Files:
- After modifying
build.json, you must regenerate the build files. - Refer to gen/README.md or use the update_pregenerated_files skill to update the pre-generated files.
- After modifying