andrewbrown-usda/aigb-skills-usda/apply-fed-oss-license
Claude Code and agent skill by andrewbrown-usda/aigb-skills-usda
- community
Checking that the SKILL.md file is still in the repository.
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.
Install
npx vskill@latest install andrewbrown-usda/aigb-skills-usda/apply-fed-oss-licenseSKILL.md
The same SKILL.md was published earlier as andrewbrown-usda/aigb-skills-usda/apply-fed-oss-license.
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:
- International jurisdictions may recognize government copyright under the Berne Convention.
- Third-party/community contributors retain copyright in their own contributions.
- Users and government authors need liability disclaimers ("AS IS").
Following the 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
- Run a contributor audit to determine whether non-federal third-party code exists:
``bash git log --format='%an <%ae>' | sort -u ``
- Inspect legacy license files (
LICENSE,COPYING,LICENSE.txt). - 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:
2. LICENSE.md
Create or update LICENSE.md in the repository root:
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.
- Update DESCRIPTION: Set the
Licensefield to:
``dcf License: MIT + file LICENSE ``
- Generate Top-Level LICENSE File: CRAN requires this file to contain only two specific key-value lines (
YEARandCOPYRIGHT 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 ``
- Retain Full Text in LICENSE.md or LICENSE.note: Leave
LICENSE.md(from Step 2) in the repository root or provide aLICENSE.noteso developers and package inspectors have access to the complete MIT text and Section 105 rider.
- Add to .Rbuildignore: Ensure markdown-only artifacts do not trigger build warnings during
R CMD check:
``regex ^INTENT\.md$ ^LICENSE\.md$ ``
- 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)
- In
pyproject.toml:
``toml [project] license = { text = "MIT" } classifiers = [ "License :: OSI Approved :: MIT License", ] ``
- Reference both
LICENSE.mdandINTENT.mdin package build manifests if required.
Step 4: Verification Checklist
- [ ]
git statusverifies old copyleft licenses (e.g.,GPL-3,COPYING) have been removed. - [ ]
INTENT.mdis present at the repository root. - [ ]
LICENSE.mdincludes the scoped copyright line and the 17 U.S.C. Section 105 notice. - [ ] For R packages:
DESCRIPTIONreadsLicense: MIT + file LICENSE, and theLICENSEfile contains onlyYEARandCOPYRIGHT HOLDER. - [ ] For R packages:
R CMD check --as-cranpasses with zero warnings or notes regarding licensing.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/apply-fed-oss-license/SKILL.md
Popularity
- Repository stars
- 7
- Repository forks
- 4
- 7-day trend score
- 5
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/andrewbrown-usda/aigb-skills-usda/apply-fed-oss-license)