Loading...
Loading...
Initializes the Awesome Copilot ID SDLC architecture, AGENTS.md, and rules in the current project.
npx skill4agent add gulajavaministudio/awesome-copilot-id sdlc-init/sdlc-initAGENTS.md.agents/AGENTS.md.agents/AGENTS.mdAGENTS.md.agents//sdlc-initCONTEXT.mdmemory.instructions.md.bakGulajavaMinistudio/awesome-copilot-id#mainAGENTS.md.agents/AGENTS.md.agents/rules/.agents/skills/.agents/standards/AGENTS.md.agents//sdlc-initdegitnpx$tempDir = "temp-awesome-copilot"
npx degit GulajavaMinistudio/awesome-copilot-id#main $tempDir --force
# 1. Backup any pre-existing memory.instructions.md or CONTEXT.md recursively
$memBackups = @()
$existingMemFiles = Get-ChildItem -Path ".\" -Include "memory.instructions.md", "CONTEXT.md" -Recurse -ErrorAction SilentlyContinue
foreach ($mem in $existingMemFiles) {
$tempBak = [System.IO.Path]::GetTempFileName()
Copy-Item $mem.FullName $tempBak -Force
$memBackups += @{ Target = $mem.FullName; TempSource = $tempBak }
}
# 2. Handle AGENTS.md (Merge if exists, copy if new)
$srcAgents = "$tempDir\AGENTS.md"
$dstAgents = ".\AGENTS.md"
if (Test-Path $dstAgents) {
Copy-Item $dstAgents "$dstAgents.bak" -Force
$date = Get-Date -Format "yyyy-MM-dd"
Add-Content $dstAgents "`n`n# --- MERGED TEMPLATE (Added on $date) ---`n"
Get-Content $srcAgents | Add-Content $dstAgents
} else {
Copy-Item $srcAgents $dstAgents
}
# 3. Detect target platform directories (.agents, and optionally .claude / .cursor if existing)
$targetDirs = @(".agents")
if (Test-Path ".\.claude") { $targetDirs += ".claude" }
if (Test-Path ".\.cursor") { $targetDirs += ".cursor" }
$srcDir = "$tempDir\.agents"
foreach ($dirName in $targetDirs) {
if (-not (Test-Path ".\$dirName")) { New-Item -ItemType Directory -Path ".\$dirName" | Out-Null }
Copy-Item "$srcDir\*" ".\$dirName\" -Recurse -Force
}
# 4. Restore preserved memory and context files
foreach ($item in $memBackups) {
$parent = Split-Path -Path $item.Target
if (-not (Test-Path $parent)) { New-Item -ItemType Directory -Path $parent -Force | Out-Null }
Copy-Item $item.TempSource $item.Target -Force
Remove-Item $item.TempSource -Force
}
# 5. Clean up temp folder
Remove-Item $tempDir -Recurse -Forcetemp_dir="temp-awesome-copilot"
npx degit GulajavaMinistudio/awesome-copilot-id#main $temp_dir --force
# 1. Backup any pre-existing memory.instructions.md or CONTEXT.md
mkdir -p /tmp/awesome_mem_bak
find . \( -name "memory.instructions.md" -o -name "CONTEXT.md" \) -exec cp --parents {} /tmp/awesome_mem_bak/ \; 2>/dev/null || true
# 2. Handle AGENTS.md (Merge if exists, copy if new)
src_agents="$temp_dir/AGENTS.md"
dst_agents="./AGENTS.md"
if [ -f "$dst_agents" ]; then
cp "$dst_agents" "${dst_agents}.bak"
echo -e "\n\n# --- MERGED TEMPLATE (Added on $(date +%Y-%m-%d)) ---\n" >> "$dst_agents"
cat "$src_agents" >> "$dst_agents"
else
cp "$src_agents" "$dst_agents"
fi
# 3. Detect target platform directories (.agents, and optionally .claude / .cursor if existing)
target_dirs=(".agents")
if [ -d "./.claude" ]; then target_dirs+=(".claude"); fi
if [ -d "./.cursor" ]; then target_dirs+=(".cursor"); fi
for dir in "${target_dirs[@]}"; do
mkdir -p "./$dir"
cp -a "$temp_dir/.agents/." "./$dir/"
done
# 4. Restore preserved memory and context files
if [ -d "/tmp/awesome_mem_bak" ]; then
cp -r /tmp/awesome_mem_bak/. ./ 2>/dev/null || true
rm -rf /tmp/awesome_mem_bak
fi
# 5. Clean up temp folder
rm -rf "$temp_dir"AGENTS.md.agents/rules/.agents/skills/.agents/standards/AGENTS.mdAGENTS.md.agentsAGENTS.md/sdlc-explore-ideas/sdlc-draft-prd"Would you like me to record this SDLC architecture initialization status tousing thememory.instructions.mdskill?" If the user agrees, immediately executememory-manager(Workflow 3: Write Mode) to append the session checkpoint.memory-manager