apply-fed-oss-license
Audit and update an arbitrary codebase to follow the Code.mil federal open-source licensing model (MIT with 17 U.S.C.
Skill by Andrew G. Brown (https://github.com/brownag)
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/andrewbrown-usda-apply-fed-oss-license
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: security
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md and code. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/apply-fed-oss-license
What's inside
- Skill name
apply-fed-oss-license- Description
- Audit and update an arbitrary codebase to follow the Code.mil federal open-source licensing model (MIT with 17 U.S.C. Section 105 disclaimers and INTENT.md), including CRAN/R package DESCRIPTION setup.
- License
- MIT
- Metadata
- author: Andrew G. Brown (https://github.com/brownag) · version: 1.0.0 · source_path: skills/apply-fed-oss-license/SKILL.md · source_repo: aigb-skills
- Instructions
- 139 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
# Federal Open Source Licensing (Code.mil Model)
## Context & Objectives
Under 17 U.S.C. Section 105, copyright protection is unavailable for works created by United States Government officers or employees as part of their official duties. However:
1. International jurisdictions may recognize government copyright under the Berne Convention.
2. Third-party/community contributors retain copyright in their own contributions.
3. Users and government authors need liability disclaimers ("AS IS").
Following the [Code.mil](https://code.mil/) pattern, this workflow transitions repositories (e.g., from GPL or undefined licenses) to an **MIT License** paired with an **`INTENT.md`** statement and explicit federal public-domain notices.
---
## Workflow Steps
### Step 1: Contributor & Licensing Audit
1. Run a contributor audit to determine whether non-federal third-party code exists:
```bash
git log --format='%an <%ae>' | sort -u
```
2. Inspect legacy license files (`LICENSE`, `COPYING`, `LICENSE.txt`).
3. Identify whether any non-federal contributions exist in the active codebase:
- If non-federal code is substantial and was licensed under GPL, verify consent from original authors before downgrading to MIT, or replace/rewrite the specific routine.
- If all historical/active maintainers were federal employees acting within their official duties, or if non-federal code has been superseded, proceed directly.
### Step 2: Create Root Licensing Files
#### 1. INTENT.md
Create `INTENT.md` in the repository root:
```markdown
# Open Source Intent & Licensing
This project is authored and maintained by United States Government employees as part of their official duties, alongside open-source community contributors.
## 1. Domestic Status (United States)
Pursuant to 17 U.S.C. Section 105, works of the United States Government are not eligible for copyright protection within the United States. Work authored by U.S. Government personnel in the scope of employment resides in the public domain domestically.
## 2. International & Permissive Licensing
To ensure clarity across international jurisdictions where foreign copyright may be recognized under international conventions, and to govern contributions from non-federal entities, this software is made available under the terms of the [MIT License](LICENSE.md).
## 3. External Contributions
Any contributions submitted to this project by non-federal contributors are accepted under the terms of the project's MIT License.
## 4. Disclaimer
This software is provided "as is", without warranty of any kind, express or implied. Use of this software does not constitute official endorsement by the U.S. Government or any of its agencies.
```
#### 2. LICENSE.md
Create or update `LICENSE.md` in the repository root:
```markdown
# MIT License
Copyright (c) [YEAR] U.S. Federal Government (in countries where recognized)
Copyright (c) [YEAR] Project Contributors
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
---
### U.S. Government Notice
Portions of this software are a work of the United States Government and are in
the public domain within the United States pursuant to 17 U.S.C. Section 105. For
jurisdictions where copyright may subsist, and for third-party contributions,
the terms of the MIT License above apply.
```
---
## Step 3: Ecosystem-Specific Adjustments
### R Packages (CRAN / Bioconductor)
R package tooling (`R CMD check`, CRAN automated parsers) expects strict formatting. A raw `LICENSE.md` alone is insufficient if the `DESCRIPTION` specifies `file LICENSE`.
1. **Update DESCRIPTION**: Set the `License` field to:
```dcf
License: MIT + file LICENSE
```
2. **Generate Top-Level LICENSE File**: CRAN requires this file to contain only two specific key-value lines (`YEAR` and `COPYRIGHT HOLDER`). Do not put full markdown or narrative prose in this exact file:
```text
YEAR: [YEAR]
COPYRIGHT HOLDER: U.S. Federal Government (in countries where recognized), package contributors
```
3. **Retain Full Text in LICENSE.md or LICENSE.note**: Leave `LICENSE.md` (from Step 2) in the repository root or provide a `LICENSE.note` so developers and package inspectors have access to the complete MIT text and Section 105 rider.
4. **Add to .Rbuildignore**: Ensure markdown-only artifacts do not trigger build warnings during `R CMD check`:
```regex
^INTENT\.md$
^LICENSE\.md$
```
5. **Document in NEWS.md and cran-comments.md**:
- In `NEWS.md`:
- Relicensed package to MIT (+ file LICENSE) with federal open source disclaimer (17 U.S.C. Section 105) per Code.mil guidance.
- In `cran-comments.md` (for CRAN release submissions):
```markdown
## License Update
* Changed License field to 'MIT + file LICENSE' to align with federal open-source guidance.
```
### Python Packages (pyproject.toml / setup.cfg)From AndrewBrown-USDA/aigb-skills-usda, MIT.
More from AndrewBrown-USDA/aigb-skills-usda
- 0.629score
agent-onboarding
Andrew G. Brown (https://github.com/brownag)
Create and maintain AGENTS.md files for project onboarding and grounding.
SkillAFreshness: A★ 7Claude Code +9 - 0.629score
arcpy-migration
Andrew G. Brown (https://github.com/brownag)
Migrates ArcPy and ArcGIS Pro workflows to explicit, testable open-source Python geospatial workflows.
SkillAFreshness: A★ 7Claude Code +9 - 0.629score
dr-lexus
Andrew G. Brown (https://github.com/brownag)
Plain language directive.
SkillAFreshness: A★ 7Claude Code +9 - 0.629score
git-history-interval-study
Andrew G. Brown (https://github.com/brownag)
Incrementally studies git history across tagged or pattern-matched intervals (e.g., creation of planning artifacts like EXECUTION_PLAN_N.md, release tags, or…
SkillAFreshness: A★ 7Claude Code +9 - 0.629score
install-skills
Andrew G. Brown (https://github.com/brownag)
Installs skills from aigb-skills into a coding agent's skill directory.
SkillAFreshness: A★ 7Claude Code +9 - 0.629score
makefile-development-workflow
Andrew G. Brown (https://github.com/brownag)
Standardizes Makefile-based build and test workflows with reproducible targets.
SkillAFreshness: A★ 7Claude Code +9 - 0.629score
performance-benchmarking
Andrew G. Brown (https://github.com/brownag)
Design and run reproducible benchmarks.
SkillAFreshness: A★ 7Claude Code +9 - 0.624score
conventional-commits
Andrew G. Brown (https://github.com/brownag)
Create, classify, validate, and explain commit messages using Conventional Commits v1.0.0, with repository-aware type, scope, footer, and breaking-change…
SkillAFreshness: A★ 7Claude Code +9 - 0.624score
copilot-history-briefing
Andrew G. Brown (https://github.com/brownag)
Reads Copilot conversation history and extracts executive-ready success stories.
SkillAFreshness: A★ 7Claude Code +9 - 0.624score
deep-investigative-research
Andrew G. Brown (https://github.com/brownag)
Comprehensive investigation of complex multi-domain narratives (technology, theology, policy, finance).
SkillAFreshness: A★ 7Claude Code +9 - 0.624score
doc-consistency
Andrew G. Brown (https://github.com/brownag)
Normalizes documentation and examples for consistency in style, format, and accuracy.
SkillAFreshness: A★ 7Claude Code +9 - 0.623score
json-processing-with-jq
Andrew G. Brown (https://github.com/brownag)
Processes JSON on the command line with jq.
SkillAFreshness: A★ 7Claude Code +9
Signals
- Stars
- 7
- Forks
- 4
- Open issues
- 1
- Last commit (this folder)
- Oct 14, 2026 (14 days ago)
- Last release
- Oct 23, 2026 (5 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- Version
- 1.0.0
- License
- MIT
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from Andrew G. Brown (https://github.com/brownag)
- 0.629score
dr-lexus
Andrew G. Brown (https://github.com/brownag)
Plain language directive.
SkillAFreshness: A★ 7Claude Code +9 - 0.629score
install-skills
Andrew G. Brown (https://github.com/brownag)
Installs skills from aigb-skills into a coding agent's skill directory.
SkillAFreshness: A★ 7Claude Code +9 - 0.629score
arcpy-migration
Andrew G. Brown (https://github.com/brownag)
Migrates ArcPy and ArcGIS Pro workflows to explicit, testable open-source Python geospatial workflows.
SkillAFreshness: A★ 7Claude Code +9 - 0.629score
agent-onboarding
Andrew G. Brown (https://github.com/brownag)
Create and maintain AGENTS.md files for project onboarding and grounding.
SkillAFreshness: A★ 7Claude Code +9 - 0.629score
git-history-interval-study
Andrew G. Brown (https://github.com/brownag)
Incrementally studies git history across tagged or pattern-matched intervals (e.g., creation of planning artifacts like EXECUTION_PLAN_N.md, release tags, or…
SkillAFreshness: A★ 7Claude Code +9 - 0.629score
makefile-development-workflow
Andrew G. Brown (https://github.com/brownag)
Standardizes Makefile-based build and test workflows with reproducible targets.
SkillAFreshness: A★ 7Claude Code +9
Cite this page
apply-fed-oss-license skill. Agent Mart. https://agentmart.dev/skills/andrewbrown-usda-apply-fed-oss-license (last updated 2026-10-24)