Kahoali, God of Spell Research, Portals, Gates, and Doors. 
Here is the revised version 

Kahoali, God of Spell Research, Portals, Gates, and Doors. 

Race: Human. 
Alignment: CG 
Patron Deity: The god(ess) of Magic 
Classes: Wizard 15/Archmage 5 
Size: Medium 
Age: A couple of thousand years. 
Gender: Male 
Height: 6'00" 
Weight: 177 lbs. 
Eyes: Blue 
Hair: Black 
Languages: Common, Abyssal, Auran, 
Aquan, Celestial, Draconic, Dwarven, 
Elven. 

code:

Strength	18	+4
Dexterity	20 (24)	+5 (+7)
Constitution	20 (24)	+5 (+7)
Intelligence	29 (34)	+9 (+12)
Wisdom		18 (22)	+4 (+6)
Charisma	23 (28)	+6 (+9)

Speed: 60 ft. 
Initiative: +8 

Hit Points: 220 
AC: 39 (29 touch or 32 flat-footed) 
Spell Resistance: 55 

Fortitude: +21 
Reflex: +21 
Will: +23 

Base Attack Bonus: +9/+4 

Skills: 
Concentration 23 (+33), Craft (goldsmithing) 18 (+33), Craft (weaponsmithing) 15 (+30), Decipher Script 8 (+23), Hide 5 (+15), Knowledge (Arcana) 23 (+38), Knowledge (Religion) 23 (+38), Knowledge (The planes) 23 (+38), Listen 9 (+18), Move Silently 5 (+15), Open Locks 9 (+19), Search 10 (+25), Spellcraft 23 (+40), Spot 9 (+18), Swim 5 (+12), Tumble 8 (+18). 

Feats: Craft Magical Arms and Armor, Craft Wondrous Item, Create Portal, Extend Spell, Forge Ring, Persistent Spell, Scribe Scroll, Skill Focus (Spellcraft), Spellcasting Prodigy (Wizard), Spell Focus (Conjuration), Spell Focus (Evocation), Spell Mastery (Gate, Greater Arcane Sight, Limited Wish, Meteor Swarm, Mordenkainen’s Disjunction, Mordenkainen’s Magnificent Mansion, Shapechange, Time Stop, Wish) 

Archmage Abilities: Arcane Fire, Arcane Reach, Mastery of Elements, Mastery of Shaping, Spell Power. 

Domains: Magic, Spell, and Portal. 

Salient Divine Abilities: Arcane Mastery, Divine Spellcasting, Increased Spell Resistance, Instant Counterspell. 

Equipment: Headband of Arcane Knowledge (+5 Int), Gloves of the Agile Caster (+4 Dex), Brooch of Dragon’s Heart (+4 Con), Cloak of Divinity (Cha +5, Resistance +5, Flying as wings of flying)*, Bracers of Armor (+10)*, Ring of Ultimate Wizardry (as Rings of Wizardry I through IV)*, Heward's Handy Haversack, Adamantine Dagger +3, mundane stuff. 

*Has a base price higher than 25,000 gp 

Money: 45,148 gp (in gems, gold, and platinum)

Portal Domain 

Granted Power: You can detect an active or inactive portal as if it were a normal secret door (DC 20). 

Spells 

1.- Summon monster I 
2.- Analyze portal 
3.- Dimensional anchor 
4.- Dimension door 
5.- Teleport 
6.- Banishment 
7.- Etherealness 
8.- Maze 
9.- Gate 

Spell Domain 

Granted Power: You get a +2 bonus on Concentration and Spellcraft checks. 

Spells 

1.- Mage armor 
2.- Silence 
3.- Anyspell 
4.- Rary's mnemonic enhancer 
5.- Break enchantment 
6.- Greater anyspell 
7.- Limited wish 
8.- Antimagic field 
9.- Mordenkainen's disjunction